diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-09 16:06:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-09 16:06:08 -0700 |
commit | 07ad37dc51d638539101ec6470905db71a166dc6 (patch) | |
tree | 34366b70297cd3c3fe136f0d3853ad01769330f8 /src | |
parent | a494c2689708e7f81861c404e5c15a34c7956b91 (diff) |
useProgram
Diffstat (limited to 'src')
-rw-r--r-- | src/webGLClient.js | 1 | ||||
-rw-r--r-- | src/webGLWorker.js | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js index be642c21..45a7486a 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -5,6 +5,7 @@ function WebGLClient() { function fixArgs(command, args) { switch (command) { + case 'useProgram': case 'linkProgram': case 'bindAttribLocation': case 'compileShader': diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 52f5d2ba..0282d83d 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -563,6 +563,9 @@ function WebGLWorker() { this.getProgramInfoLog = function(shader) { return ''; // optimistic assumption of success; no proxying }; + this.useProgram = function(program) { + commandBuffer.push('useProgram', 1, program.id); + }; // Setup var postMainLoop = Module['postMainLoop']; |