mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Configurable alpha parameter for webgl construction
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user