mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
window.gl should not be public variable, rename it to window.__ccgl.
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ let {enums, glTextureFmt} = require("./enums");
|
||||
let VertexFormat = require("./vertex-format-jsb");
|
||||
|
||||
window.device = gfx.Device.getInstance();
|
||||
window.device._gl = window.gl;
|
||||
window.device._gl = window.__ccgl;
|
||||
|
||||
//FIXME:
|
||||
window.device._stats = { vb: 0 };
|
||||
|
||||
Reference in New Issue
Block a user