aboutsummaryrefslogtreecommitdiff
path: root/src/webGLWorker.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-13 14:23:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-13 14:23:18 -0700
commit1b5036619a81daea2f781dc8dab101bda8292fa8 (patch)
treeccdd5ae424aec134744a0c304430a3164fe9d45a /src/webGLWorker.js
parente3445d96338343a67084b03ecd0a9c6643962265 (diff)
getProgramParameter(LINK_STATUS)
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r--src/webGLWorker.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 997f79d8..a7731767 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -573,10 +573,15 @@ function WebGLWorker() {
});
};
this.getProgramParameter = function(program, name) {
- if (name === this.ACTIVE_UNIFORMS) {
- return program.uniformVec.length;
+ switch (name) {
+ case this.ACTIVE_UNIFORMS: return program.uniformVec.length;
+ case this.LINK_STATUS: {
+ // optimisticaly return success; client will abort on an actual error. we assume an error-free async workflow
+ commandBuffer.push('getProgramParameter', program.id, name);
+ return true;
+ }
+ default: throw 'bad getProgramParameter ' + revname(name);
}
- throw 'bad getProgramParameter ' + revname(name);
};
this.getActiveUniform = function(program, index) {
var name = program.uniformVec[index];