diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-31 12:36:53 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-31 14:17:29 -0700 |
commit | b94b2cfa0bb06dbd4b9d3aa7fbb95cd9241b2d25 (patch) | |
tree | 64fb838f2ad996d3662c6948688b57bce495b05c /src/library_gl.js | |
parent | e199d87cb80014522b40f0b7c9b7bd60ee15e8c2 (diff) |
fix attribute offsets when they start at >0 and there is an array buffer
Diffstat (limited to 'src/library_gl.js')
-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 fdd138b3..e8bda2bf 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -2279,7 +2279,7 @@ var LibraryGL = { if (GL.immediate.enabledClientAttributes[i]) attributes.push(GL.immediate.clientAttributes[i]); } attributes.sort(function(x, y) { return !x ? (!y ? 0 : 1) : (!y ? -1 : (x.pointer - y.pointer)) }); - start = attributes[0].pointer; + start = GL.currArrayBuffer ? 0 : attributes[0].pointer; for (var i = 0; i < attributes.length; i++) { var attribute = attributes[i]; if (!attribute) break; |