aboutsummaryrefslogtreecommitdiff
path: root/src/webGLClient.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-17 14:25:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-17 14:25:37 -0700
commita78eda74c6b3c81bf7132c2fbf0a401519f20c39 (patch)
tree6a62be6e32f3156688d5879c2499ff80a664941a /src/webGLClient.js
parent8b61e1aca532f5e3fef1fac9882cfd7e74894517 (diff)
some debugging for gl client errors
Diffstat (limited to 'src/webGLClient.js')
-rw-r--r--src/webGLClient.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js
index 02e5793f..97d4e37f 100644
--- a/src/webGLClient.js
+++ b/src/webGLClient.js
@@ -66,6 +66,10 @@ function WebGLClient() {
//dump('issue-: ' + command + '(' + args + '), ' + numArgs + '\n');
objects[id] = ctx[command].apply(ctx, args);
}
+ //var err;
+ //while ((err = ctx.getError()) !== ctx.NO_ERROR) {
+ // dump('warning: GL error ' + err + ', after ' + [command, numArgs] + '\n');
+ //}
assert(i <= len);
}
}