George Corney (STR Limited) 9 năm trước cách đây
mục cha
commit
7f4a36dd0a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/babylon.engine.ts

+ 1 - 1
src/babylon.engine.ts

@@ -2758,7 +2758,7 @@
 
             // Unbind
             for (var i = 0, ul = this._vertexAttribArraysEnabled.length; i < ul; i++) {
-                if (i > this._caps.maxVertexAttribs || !this._vertexAttribArraysEnabled[i]) {
+                if (i >= this._caps.maxVertexAttribs || !this._vertexAttribArraysEnabled[i]) {
                     continue;
                 }
                 this._gl.disableVertexAttribArray(i);