浏览代码

Canvas2d: sprite doesn't dispose the texture anymore

nockawa 9 年之前
父节点
当前提交
98b6e3393a
共有 1 个文件被更改,包括 4 次插入4 次删除
  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;