aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-04-03 18:04:27 -0400
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-04-03 18:06:34 -0400
commit23b742cea50f3224a73a0446c0eac228100f75af (patch)
tree2b88761aabf6888db5d5c4cf63f1d99e3cdec642 /src
parentf8a81e023a939826c527618838b5477191aebda5 (diff)
Revert the offset change for byte array accesses
Diffstat (limited to 'src')
-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 247f5cb7..eddf9b73 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -179,7 +179,7 @@ var LibraryGL = {
result instanceof Int32Array ||
result instanceof Array) {
for (var i = 0; i < result.length; ++i) {
- {{{ makeSetValue('p', 'i*4', 'result[i] != 0', 'i8') }}};
+ {{{ makeSetValue('p', 'i', 'result[i] != 0', 'i8') }}};
}
} else if (result instanceof WebGLBuffer ||
result instanceof WebGLProgram ||