aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 17749590..f6978c04 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -4170,7 +4170,7 @@ var LibraryGL = {
}
for (var i = 0; i < attributes.length; i++) {
var attr = attributes[i];
- attr.offset = attr.pointer - clientStartPointer; // Compute what will be the offset of this attribute in the VBO after we upload.
+ attr.offset = attr.pointer - GLImmediate.vertexPointer; // Compute what will be the offset of this attribute in the VBO after we upload.
}
GLImmediate.stride = Math.max(maxStride, bytes);
}