aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-20 11:48:59 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-20 11:48:59 -0700
commit0f1793994035e751e865a29740d1389094316030 (patch)
tree80e80fbd939ebe280d2e8c8a6ad0ea3a29fb6be5 /src/library_gl.js
parent80abde2c6256340e19ed8264ed4e00dc28c724e9 (diff)
make gl debugging switchable at runtime (if GL_DEBUG was set at compile time)
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 8a24031f..29ead1fc 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -5,6 +5,10 @@
var LibraryGL = {
$GL: {
+#if GL_DEBUG
+ debug: false,
+#endif
+
counter: 1,
buffers: {},
programs: {},