aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webGLWorker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 7d293c54..7ed6088c 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -647,7 +647,7 @@ function WebGLWorker() {
return ''; // optimistic assumption of success; no proxying
};
this.useProgram = function(program) {
- commandBuffer.push('useProgram', 1, program.id);
+ commandBuffer.push('useProgram', 1, program ? program.id : 0);
};
this.uniform1i = function(location, data) {
commandBuffer.push('uniform1i', 2, location.id, data);