diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-06 17:02:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-06 17:02:49 -0700 |
commit | 80a4702cabc406b15eae8285820f60ef834c059c (patch) | |
tree | 76a031ca35a6f77144a61d111d8eab1855e09017 | |
parent | 2aa38c38d4978d48f6e95a8f9cfb873d2649d69e (diff) |
bindAttribLocation
-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 c54ec2ab..b7a639ab 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -5,6 +5,7 @@ function WebGLClient() { function fixArgs(command, args) { switch (command) { + case 'bindAttribLocation': case 'compileShader': case 'shaderSource': args[0] = objects[args[0]]; break; case 'attachShader': args[0] = objects[args[0]]; args[1] = objects[args[1]]; break; diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 2fa80886..97b757f4 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -511,6 +511,9 @@ function WebGLWorker() { commandBuffer.push('attachShader', 2, program.id, shader.id); // TODO: save shader list for getAttachedShaders }; + this.bindAttribLocation = function(program, index, name) { + commandBuffer.push('bindAttribLocation', 3, program.id, index, name); + }; // Setup var postMainLoop = Module['postMainLoop']; |