diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-05-16 14:36:02 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-05-16 15:03:58 -0400 |
commit | 7140877789d9e648c825af0f2896a562bcb6ebda (patch) | |
tree | 8769ba9aac1497c775b68dd560a395c85c98b5a7 /src | |
parent | f0d31ed4996a3f194f81d40fc14d1cbc93dd9a42 (diff) |
Fix the incorrect initial value of GL.immediate.currentMatrix
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 72246df3..ec9aaf99 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1513,13 +1513,6 @@ var LibraryGL = { Module.printErr('WARNING: using emscripten GL immediate mode emulation. This is very limited in what it supports'); GL.immediate.initted = true; - // No JSON notation for these objects, for closure w/js optimizer - this.matrix['m'] = null; // modelview - this.matrix['p'] = null; // projection - for (var i = 0; i < GL.immediate.MAX_TEXTURES; i++) { - this.matrix['t' + i] = null; // texture - } - this.matrixStack['m'] = []; this.matrixStack['p'] = []; for (var i = 0; i < GL.immediate.MAX_TEXTURES; i++) { @@ -1544,7 +1537,6 @@ var LibraryGL = { for (var i = 0; i < GL.immediate.MAX_TEXTURES; i++) { GL.immediate.matrix['t' + i] = GL.immediate.matrix.lib.mat4.create(); } - GL.immediate.currentMatrix = GL.immediate.matrix.lib.mat4.create(); // Buffers for data this.tempData = new Float32Array(this.maxElements); |