aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-20 15:22:34 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-20 15:22:34 -0700
commit70d55a83f110cce35e721e5d415cf7252c0558af (patch)
treed99ff6518c507d794bae60dcebee64f4c1fdcdbb
parent5f777e08f2affe3e640edf0be757ccfae13cba99 (diff)
getActiveAttrib
-rw-r--r--src/webGLWorker.js5
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;