aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-01-14 00:39:23 +0200
committerJukka Jylänki <jujjyl@gmail.com>2014-01-14 00:39:23 +0200
commitcb0f677e53e556185951c84a472a340ab49d3dc3 (patch)
treed8ca2ea91022b362746f8e5a741388b12e01cc6f
parentd9c105af0351ead96e37899d14ad074a1fb1d137 (diff)
Fix GL emulation regression with VBO data caused by commit https://github.com/kripken/emscripten/commit/4e3c1b3e862ffd8e324cd1f24ed84692bd50a83b#commitcomment-5056244
-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);
}