aboutsummaryrefslogtreecommitdiff
path: root/src/proxyClient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/proxyClient.js')
-rw-r--r--src/proxyClient.js5
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': {