diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webGLWorker.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index cbf5ec74..6416add9 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -559,6 +559,7 @@ function WebGLWorker() { this.getAttribLocation = function(program, name) { // manually bound attribs are cached locally if (name in program.attributes) return program.attributes[name]; + if (!(name in program.existingAttributes)) return -1; // if not manually bound, bind it to the next index so we update the client var index = program.attributeVec.length; this.bindAttribLocation(program, index, name); |