diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-01-03 23:53:30 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-01-09 20:05:43 +0200 |
commit | 53af5de771b71a3424e51e19aac4395521d99e4c (patch) | |
tree | 65998c77c4d27b3335851b35d6c1314381fb85ff /src/library_browser.js | |
parent | f4d8baa64b17a07aeece98a1b6db3bfb9ca0203c (diff) |
Simplify verbose object dereference hierarchy in library_gl.js by storing global WebGL context in the variable GLctx in addition to Module.ctx.
Diffstat (limited to 'src/library_browser.js')
-rw-r--r-- | src/library_browser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index e0f53052..d5e35339 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -319,7 +319,7 @@ mergeInto(LibraryManager.library, { }, false); } if (setInModule) { - Module.ctx = ctx; + GLctx = Module.ctx = ctx; Module.useWebGL = useWebGL; Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() }); Browser.init(); |