diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-05 17:22:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-05 17:22:31 -0700 |
commit | 459cd6a71c0dd1bcb15eaa69e9ffcab18a69f8dc (patch) | |
tree | 7bdb4de93603db9148ae0f94064794f3b93ca8d3 /src/webGLClient.js | |
parent | bdd0a5c6e878aa85493775d4c0bee95a380e4468 (diff) |
more preparations for prefetched parameters
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 }); +} + |