diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-27 21:11:18 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-27 21:11:18 -0500 |
commit | 25c344becdbb1f96a514479452e0b29ddf9f7ce5 (patch) | |
tree | 53ec48f14cebc8e60984efeb7279c96cf0db27b7 /src/library_gl.js | |
parent | b729f7a89a03a6ad6ddda1061d687305ee25c6e7 (diff) |
expose current buffers outside of FULL_ES2 - needed for gl emulation
Diffstat (limited to 'src/library_gl.js')
-rw-r--r-- | src/library_gl.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 9141e196..2e5fe918 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -22,9 +22,9 @@ var LibraryGL = { #if FULL_ES2 clientBuffers: [], enabledClientBuffers: [], +#endif currArrayBuffer: 0, currElementArrayBuffer: 0, -#endif byteSizeByTypeRoot: 0x1400, // GL_BYTE byteSizeByType: [ @@ -210,8 +210,7 @@ var LibraryGL = { preDrawHandleClientVertexAttribBindings: function(count) { GL.resetBufferBinding = false; for (var i = 0; i < GL.maxVertexAttribs; ++i) { - if (!GL.enabledClientBuffers[i] || !GL.clientBuffers[i]) - continue; + if (!GL.enabledClientBuffers[i] || !GL.clientBuffers[i]) continue; GL.resetBufferBinding = true; |