David Catuhe преди 7 години
родител
ревизия
04ddd5a61f
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      src/Particles/babylon.gpuParticleSystem.ts

+ 6 - 1
src/Particles/babylon.gpuParticleSystem.ts

@@ -1194,7 +1194,12 @@
             if (this._limitVelocityGradientsTexture) {
                 this._limitVelocityGradientsTexture.dispose();
                 (<any>this._limitVelocityGradientsTexture) = null;
-            }         
+            }                   
+
+            if (this._dragGradientsTexture) {
+                this._dragGradientsTexture.dispose();
+                (<any>this._dragGradientsTexture) = null;
+            }               
          
             if (this._randomTexture) {
                 this._randomTexture.dispose();