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]);
             }