diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-17 10:56:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-17 10:56:32 -0700 |
commit | dae36432babe128d56ef70e6f576959ebdd09f95 (patch) | |
tree | 2115bdbad52b18683e3df3217a74ea4133bd3697 /src/proxyClient.js | |
parent | cd26981f4d08d95d99983efe3a2d954497713ca0 (diff) |
make it easy to use GL debug logging in workers as well
Diffstat (limited to 'src/proxyClient.js')
-rw-r--r-- | src/proxyClient.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/proxyClient.js b/src/proxyClient.js index 1c9b6548..30fe3850 100644 --- a/src/proxyClient.js +++ b/src/proxyClient.js @@ -61,7 +61,10 @@ worker.onmessage = function worker_onmessage(event) { switch (data.op) { case 'getContext': { Module.ctx = Module.canvas.getContext(data.type, data.attributes); - if (data.type !== '2d') Module.glClient = new WebGLClient(); + if (data.type !== '2d') { + // possible GL_DEBUG entry point: Module.ctx = wrapDebugGL(Module.ctx); + Module.glClient = new WebGLClient(); + } break; } case 'resize': { |