Update HTML5Window.hx

This commit is contained in:
Alex Frost
2019-07-07 00:40:44 +03:00
committed by Joshua Granick
parent 7e12a64c34
commit 555395235f

View File

@@ -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,