diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-09 16:20:41 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-09 16:20:41 -0700 |
commit | a091408336198a95858e31a2b90f363765338ef1 (patch) | |
tree | d33be749e0558c97c32fdf3a67caf241b7ce9293 | |
parent | a036d4724c5f3c5df1286d5c213ac45ca70f1166 (diff) |
fix uniform name parsing
-rw-r--r-- | src/webGLWorker.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index d0f70781..88327cf9 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -531,6 +531,8 @@ function WebGLWorker() { var close = name.indexOf(']'); size = parseInt(name.substring(open+1, close)); name = name.substr(0, open); + } else { + name = name.substr(0, name.length-1); // remove ';' } if (!program.uniforms[name]) { program.uniforms[name] = { what: 'uniform', name: name, size: size }; |