summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-06 17:04:38 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-06 17:04:38 -0700
commitf376765f7040585f2b61306a8177190ef4336d95 (patch)
treeb303a4657af09479ffd08776cee7dab35e94a6b4 /src
parent80a4702cabc406b15eae8285820f60ef834c059c (diff)
linkProgram
Diffstat (limited to 'src')
-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 b7a639ab..be642c21 100644
--- a/src/webGLClient.js
+++ b/src/webGLClient.js
@@ -5,6 +5,7 @@ function WebGLClient() {
function fixArgs(command, args) {
switch (command) {
+ case 'linkProgram':
case 'bindAttribLocation':
case 'compileShader':
case 'shaderSource': args[0] = objects[args[0]]; break;
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 97b757f4..76ee488f 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -514,6 +514,9 @@ function WebGLWorker() {
this.bindAttribLocation = function(program, index, name) {
commandBuffer.push('bindAttribLocation', 3, program.id, index, name);
};
+ this.linkProgram = function(program) {
+ commandBuffer.push('linkProgram', 1, program.id);
+ };
// Setup
var postMainLoop = Module['postMainLoop'];