aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_gl.js2
-rw-r--r--src/settings.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index c43b424d..f37fde78 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1501,7 +1501,7 @@ var LibraryGL = {
},
// Temporary buffers
- MAX_TEMP_BUFFER_SIZE: 2*1024*1024,
+ MAX_TEMP_BUFFER_SIZE: {{{ GL_MAX_TEMP_BUFFER_SIZE }}},
tempBufferIndexLookup: null,
tempVertexBuffers: null,
tempIndexBuffers: null,
diff --git a/src/settings.js b/src/settings.js
index 0234d0ca..23898195 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -148,9 +148,11 @@ var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js).
// Runtime.debug at runtime for logging to cease, and can set it when you
// want it back. A simple way to set it in C++ is
// emscripten_run_script("Runtime.debug = ...;");
+var SOCKET_DEBUG = 0; // Log out socket/network data transfer.
+
var GL_DEBUG = 0; // Print out all calls into WebGL. As with LIBRARY_DEBUG, you can set a runtime
// option, in this case GL.debug.
-var SOCKET_DEBUG = 0; // Log out socket/network data transfer.
+var GL_MAX_TEMP_BUFFER_SIZE = 2097152; // How large GL emulation temp buffers are
var PROFILE_MAIN_LOOP = 0; // Profile the function called in set_main_loop