David Catuhe 7 년 전
부모
커밋
07ab8334ef
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/Particles/babylon.gpuParticleSystem.ts

+ 4 - 0
src/Particles/babylon.gpuParticleSystem.ts

@@ -636,6 +636,10 @@
         }
 
         private _releaseVAOs() {
+            if (!this._updateVAO) {
+                return;
+            }
+            
             for (var index = 0; index < this._updateVAO.length; index++) {
                 this._engine.releaseVertexArrayObject(this._updateVAO[index]);
             }