aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-01-18 12:52:43 +0200
committerJukka Jylänki <jujjyl@gmail.com>2014-01-18 12:52:43 +0200
commit7a1c4076a28a4a7eee344dff199c43d03c996f2c (patch)
tree93b984dc1cfc9cd830de394f59f602d47bf4ac4c
parentac244127bf487f7d74f894412a5e54b8850c0e86 (diff)
Fix GL emulation cleanup to properly update the state it changes.
-rw-r--r--src/library_gl.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 1b6a47a4..781a07d9 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -3972,6 +3972,7 @@ var LibraryGL = {
}
if (!GL.currProgram) {
GLctx.useProgram(null);
+ GLImmediate.fixedFunctionProgram = 0;
}
if (!GL.currArrayBuffer) {
GLctx.bindBuffer(GLctx.ARRAY_BUFFER, null);