diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-04-13 15:35:15 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-04-13 15:35:15 -0400 |
commit | 740ba04b4a6ab38a48d65d25343c88c9422fa34d (patch) | |
tree | cff9d44fbb70ae4cd327e5841a3361bf5f2b44bb | |
parent | aad93045cb07080ee142cbe7340ea1a296e3a935 (diff) |
Set the matrix data correctly
-rw-r--r-- | src/library_gl.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 813d3907..6c4b78ba 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1115,8 +1115,8 @@ var LibraryGL = { Module.ctx.uniform1i(this.textureLocation, 0); - Module.ctx.uniform4fv(this.modelViewLocation, GL.matrix["m"]); - Module.ctx.uniform4fv(this.projectionLocation, GL.matrix["p"]); + Module.ctx.uniformMatrix4fv(this.modelViewLocation, 0 /* GL_FALSE */, GL.matrix["m"]); + Module.ctx.uniformMatrix4fv(this.projectionLocation, 0 /* GL_FALSE */, GL.matrix["p"]); Module.ctx.bindBuffer(Module.ctx.ELEMENT_ARRAY_BUFFER, this.indexObject); Module.ctx.drawElements(Module.ctx.TRIANGLES, this.indexCounter, Module.ctx.UNSIGNED_SHORT, 0); |