aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js2
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;