sebavan 5 years ago
parent
commit
ff2768284e
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/Engines/thinEngine.ts

+ 0 - 4
src/Engines/thinEngine.ts

@@ -1891,10 +1891,6 @@ export class ThinEngine {
      * @param attributeLocation defines the attribute location of the attribute to disable
      */
     public disableAttributeByIndex(attributeLocation: number) {
-        if (!this._vertexAttribArraysEnabled[attributeLocation]) {
-            return;
-        }
-
         this._gl.disableVertexAttribArray(attributeLocation);
         this._vertexAttribArraysEnabled[attributeLocation] = false;
         this._currentBufferPointers[attributeLocation].active = false;