window.gl should not be public variable, rename it to window.__ccgl.

This commit is contained in:
James Chen
2018-04-20 10:26:15 +08:00
parent c8dd586c19
commit 674ee3a0ae
+1 -1
View File
@@ -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 };