diff options
-rw-r--r-- | src/webGLWorker.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 1a051bbd..be409cfe 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -629,6 +629,11 @@ function WebGLWorker() { default: throw 'bad getProgramParameter ' + revname(name); } }; + this.getActiveAttrib = function(program, index) { + var name = program.attributeVec[index]; + if (!name) return null; + return program.attributes[name]; + }; this.getActiveUniform = function(program, index) { var name = program.uniformVec[index]; if (!name) return null; |