diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-05 18:26:02 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-05 18:26:02 -0800 |
commit | 5a99d2567e76f257309cfd225876f3a5402e5f46 (patch) | |
tree | 4017c62d53033d3cdfb1cdeb26529190d58784b2 /src/library_gl.js | |
parent | ac0972ebf6cb8ff17f1bbbf01526d29fd2d2f420 (diff) | |
parent | 9aa7bbf6987cad3cff53906c5d6a6e77b6bd5b9c (diff) |
Merge branch 'incoming'
Diffstat (limited to 'src/library_gl.js')
-rw-r--r-- | src/library_gl.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 0566b3a0..f7966dab 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -424,11 +424,9 @@ var LibraryGL = { }, glIsTexture: function(texture) { - var fb = GL.textures[texture]; - if (typeof(fb) == 'undefined') { - return 0; - } - return Module.ctx.isTexture(fb); + var texture = GL.textures[texture]; + if (!texture) return 0; + return Module.ctx.isTexture(texture); }, glGenBuffers__sig: 'vii', |