We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0c6bc2 + e35cbd6 commit 71706f0Copy full SHA for 71706f0
index.js
@@ -98,14 +98,14 @@ GLGeometry.prototype.bind = function bind(shader) {
98
this.update()
99
this._vao.bind()
100
101
- if (!shader) return
102
- shader.bind()
103
-
104
if (!this._keys) return
105
for (var i = 0; i < this._keys.length; i++) {
106
var attr = shader.attributes[this._keys[i]]
107
if (attr) attr.location = i
108
}
+
+ if (!shader) return
+ shader.bind()
109
110
111
GLGeometry.prototype.draw = function draw(mode, start, stop) {
0 commit comments