David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
07ab8334ef
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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]);
             }