From a78eda74c6b3c81bf7132c2fbf0a401519f20c39 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 17 Jun 2014 14:25:37 -0700 Subject: some debugging for gl client errors --- src/webGLClient.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/webGLClient.js') 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); } } -- cgit v1.2.3-18-g5258