diff options
Diffstat (limited to 'src/webGLClient.js')
-rw-r--r-- | src/webGLClient.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js index 8828f181..193d5dfa 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -1,2 +1,10 @@ // WebGLWorker client code +function WebGLClient() { + var data = {}; + ['MAX_VERTEX_ATTRIBS'].forEach(function(name) { + data[name] = Module.ctx.getParameter(Module.ctx[name]); + }); + worker.postMessage({ target: 'gl', op: 'setPrefetchedParameters', data: data }); +} + |