aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-24 16:40:27 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-24 16:40:27 -0500
commitd495fd27c2f492c891b82e367100fac0be213d67 (patch)
tree6d65f755e8e2e98bdd95cc03b99417589c1ca794 /src/library_gl.js
parent2c0c0fd2d9e69e99ee41deb22429580ee1343155 (diff)
Correct some arguments
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js8
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);
},