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