aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webGLClient.js1
-rw-r--r--src/webGLWorker.js3
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'];