aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library_gl.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 5d58caf7..5ea93162 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -3314,10 +3314,11 @@ var LibraryGL = {
var keyView = cacheMap.getStaticKeyView().reset();
// By attrib state:
+ var enabledAttributesKey = 0;
for (var i = 0; i < attributes.length; i++) {
- var attribute = attributes[i];
- keyView.next(attribute.name);
+ enabledAttributesKey |= 1 << attributes[i].name;
}
+ keyView.next(enabledAttributesKey);
// By fog state:
var fogParam = 0;