diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-09 11:51:45 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-09 11:51:45 -0800 |
commit | 6cdd7405376a72a47889e0b3d325f908951680b1 (patch) | |
tree | 0874e4cf21534735efbe7e3cbf50b7fcaa8c6829 /src | |
parent | 95a8957ce7efbcf6d2d0c0a91ff53a50a823bc2b (diff) |
resolve gl aliases directly, simpler for fastcomp
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 90c618c7..eb5d6cdd 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -5354,7 +5354,7 @@ if (LEGACY_GL_EMULATION) { // GL proc address retrieval - allow access through glX and emscripten_glX, to allow name collisions with user-implemented things having the same name (see gl.c) keys(LibraryGL).forEach(function(x) { if (x.substr(-6) == '__deps' || x.substr(-9) == '__postset' || x.substr(-5) == '__sig' || x.substr(-5) == '__asm' || x.substr(0, 2) != 'gl') return; - var original = x; + while (typeof LibraryGL[x] === 'string') LibraryGL[x] = LibraryGL[LibraryGL[x]]; // resolve aliases right here, simpler for fastcomp var y = 'emscripten_' + x; LibraryGL[y] = LibraryGL[x]; LibraryGL[y + '__deps'] = LibraryGL[x + '__deps']; // note that we might want to rename in the deps as well |