From 674ee3a0aebd1bb88f955cb488f87b780e340d47 Mon Sep 17 00:00:00 2001 From: James Chen Date: Fri, 20 Apr 2018 10:26:15 +0800 Subject: [PATCH] window.gl should not be public variable, rename it to window.__ccgl. --- jsb/gfx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsb/gfx.js b/jsb/gfx.js index 320c1a8652..6d16f5de70 100644 --- a/jsb/gfx.js +++ b/jsb/gfx.js @@ -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 };