From 555395235f9e068acc6ccf268d2ad56b9eed8a59 Mon Sep 17 00:00:00 2001 From: Alex Frost Date: Sun, 7 Jul 2019 00:40:44 +0300 Subject: [PATCH] Update HTML5Window.hx --- src/lime/_internal/backend/html5/HTML5Window.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lime/_internal/backend/html5/HTML5Window.hx b/src/lime/_internal/backend/html5/HTML5Window.hx index 196baf5d3..aee950360 100644 --- a/src/lime/_internal/backend/html5/HTML5Window.hx +++ b/src/lime/_internal/backend/html5/HTML5Window.hx @@ -280,7 +280,7 @@ class HTML5Window var options = { alpha: (transparentBackground || colorDepth > 16) ? true : false, - antialias: Reflect.hasField(contextAttributes, "antialiasing") ? true : false, + antialias: Reflect.hasField(contextAttributes, "antialiasing") ? contextAttributes.antialiasing > 0 : false, depth: Reflect.hasField(contextAttributes, "depth") ? contextAttributes.depth : true, premultipliedAlpha: true, stencil: Reflect.hasField(contextAttributes, "stencil") ? contextAttributes.stencil : false,