aboutsummaryrefslogtreecommitdiff
path: root/src/webGLWorker.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-18 13:40:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-18 13:40:04 -0700
commit27c92843ee748ad7a1be5ab3ef53f8d8ab93dbb3 (patch)
treeb9dc2255c0f10d7dcbf744ea9bae93d6930750a4 /src/webGLWorker.js
parent6fd7a3c12464c9745c2451ec707bcda39b162fc6 (diff)
fix useProgram(null)
Diffstat (limited to 'src/webGLWorker.js')
-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);