aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-11-25 15:55:58 +0200
committerJukka Jylänki <jujjyl@gmail.com>2013-11-26 23:26:17 +0200
commite403f4e098247cf0aa80c20ed2cdb602a844a0f4 (patch)
tree01698ef6541c3ccbeda53116f837cfac1ed52385 /src/library_gl.js
parentfc5dd62fc359397245aca85b1cc847393ba5858f (diff)
Fix GL logging message when GL_UNSAFE_OPTS is disabled.
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index d12fba49..1e8f2f2f 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1808,7 +1808,7 @@ var LibraryGL = {
// Add some emulation workarounds
Module.printErr('WARNING: using emscripten GL emulation. This is a collection of limited workarounds, do not expect it to work.');
-#if GL_UNSAFE_OPTS == 0
+#if GL_UNSAFE_OPTS == 1
Module.printErr('WARNING: using emscripten GL emulation unsafe opts. If weirdness happens, try -s GL_UNSAFE_OPTS=0');
#endif
@@ -3733,10 +3733,10 @@ var LibraryGL = {
arrayBuffer = GL.currArrayBuffer;
}
+#if GL_UNSAFE_OPTS
// If the array buffer is unchanged and the renderer as well, then we can avoid all the work here
// XXX We use some heuristics here, and this may not work in all cases. Try disabling GL_UNSAFE_OPTS if you
// have odd glitches
-#if GL_UNSAFE_OPTS
var lastRenderer = GL.immediate.lastRenderer;
var canSkip = this == lastRenderer &&
arrayBuffer == GL.immediate.lastArrayBuffer &&