diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-04 13:21:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-04 13:21:19 -0700 |
commit | fb96dbf7e0599e8052bd315f3f8e41d448e66449 (patch) | |
tree | 58c3402553084cbbb96fadca93d3f5a31f69d075 /src/library_gl.js | |
parent | 3e7f939ac7cc770558c54c945f596edf9098abd2 (diff) |
fix repeated calls to glDraw* where the count changes but not the client attributes; fixes part of #1589
Diffstat (limited to 'src/library_gl.js')
-rw-r--r-- | src/library_gl.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index c134ad97..5184f4fd 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -3398,6 +3398,7 @@ var LibraryGL = { // does not work for glBegin/End, where we generate renderer components dynamically and then // disable them ourselves, but it does help with glDrawElements/Arrays. if (!this.modifiedClientAttributes) { + GL.immediate.vertexCounter = (GL.immediate.stride * count) / 4; // XXX assuming float return; } this.modifiedClientAttributes = false; |