소스 검색

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;