Allow WebGL canvas to be premultiplied, better performance

This commit is contained in:
Joshua Granick
2016-07-07 10:52:47 -07:00
parent b212acdbf3
commit dbbe4ce9d3

View File

@@ -67,7 +67,7 @@ class HTML5Renderer {
alpha: (Reflect.hasField (parent.window.config, "background") && parent.window.config.background == null) ? true : false,
antialias: Reflect.hasField (parent.window.config, "antialiasing") ? parent.window.config.antialiasing > 0 : false,
depth: Reflect.hasField (parent.window.config, "depthBuffer") ? parent.window.config.depthBuffer : true,
premultipliedAlpha: false,
premultipliedAlpha: true,
stencil: Reflect.hasField (parent.window.config, "stencilBuffer") ? parent.window.config.stencilBuffer : false,
preserveDrawingBuffer: false