Forráskód Böngészése

Canvas2d: sprite doesn't dispose the texture anymore

nockawa 9 éve
szülő
commit
98b6e3393a
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      src/Canvas2d/babylon.sprite2d.ts

+ 4 - 4
src/Canvas2d/babylon.sprite2d.ts

@@ -73,10 +73,10 @@
                 this.ib = null;
             }
 
-            if (this.texture) {
-                this.texture.dispose();
-                this.texture = null;
-            }
+            //if (this.texture) {
+            //    this.texture.dispose();
+            //    this.texture = null;
+            //}
 
             this.effect = null;
             this.effectInstanced = null;