sebavan 5 年之前
父节点
当前提交
ff2768284e
共有 1 个文件被更改,包括 0 次插入4 次删除
  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;