Configurable alpha parameter for webgl construction

This commit is contained in:
pandamicro
2017-06-29 22:50:38 +08:00
parent 854d2d8f14
commit 0bdf1ac69b
3 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -672,7 +672,7 @@ var game = {
this._renderContext = cc._renderContext = cc.webglContext
= cc.create3DContext(localCanvas, {
'stencil': true,
'alpha': true,
'alpha': cc.macro.ENABLE_TRANSPARENT_CANVAS,
'antialias': cc.sys.isMobile
});
}