diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-24 16:40:27 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-24 16:40:27 -0500 |
commit | d495fd27c2f492c891b82e367100fac0be213d67 (patch) | |
tree | 6d65f755e8e2e98bdd95cc03b99417589c1ca794 /src/library_gl.js | |
parent | 2c0c0fd2d9e69e99ee41deb22429580ee1343155 (diff) |
Correct some arguments
Diffstat (limited to 'src/library_gl.js')
-rw-r--r-- | src/library_gl.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index a5f365f0..17b9bcd6 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -254,22 +254,22 @@ var LibraryGL = { }, glVertexAttrib1fv: function(index, v) { - v = new Float32Array(TypedArray_copy(v, value + 1*4)); // TODO: optimize + v = new Float32Array(TypedArray_copy(v, 1*4)); // TODO: optimize Module.ctx.vertexAttrib1fv(index, v); }, glVertexAttrib2fv: function(index, v) { - v = new Float32Array(TypedArray_copy(v, value + 2*4)); // TODO: optimize + v = new Float32Array(TypedArray_copy(v, 2*4)); // TODO: optimize Module.ctx.vertexAttrib2fv(index, v); }, glVertexAttrib3fv: function(index, v) { - v = new Float32Array(TypedArray_copy(v, value + 3*4)); // TODO: optimize + v = new Float32Array(TypedArray_copy(v, 3*4)); // TODO: optimize Module.ctx.vertexAttrib3fv(index, v); }, glVertexAttrib4fv: function(index, v) { - v = new Float32Array(TypedArray_copy(v, value + 4*4)); // TODO: optimize + v = new Float32Array(TypedArray_copy(v, 4*4)); // TODO: optimize Module.ctx.vertexAttrib4fv(index, v); }, |