David Catuhe 7 năm trước cách đây
mục cha
commit
07ab8334ef
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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]);
             }