浏览代码

prevent auto dispose automatic (should be manually managed)

ncannasse 7 年之前
父节点
当前提交
ed226692aa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/mat/BigTexture.hx

+ 1 - 0
h3d/mat/BigTexture.hx

@@ -83,6 +83,7 @@ class BigTexture {
 		this.bgColor = bgColor;
 		space = new QuadTree(0,0,size,size);
 		tex = new h3d.mat.Texture(1, 1, allocPos);
+		tex.preventAutoDispose();
 		tex.flags.set(Serialize);
 		tex.clear(bgColor);
 		tex.realloc = rebuild;