aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webGLWorker.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 6416add9..4911c098 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -617,6 +617,7 @@ function WebGLWorker() {
return program.uniforms[name];
};
this.getUniformLocation = function(program, name) {
+ if (!(name in program.uniforms)) return null;
var index = -1;
var open = name.indexOf('[');
if (open >= 0) {