浏览代码

Update to latest master and fix allocTileTarget

Yanrishatum 6 年之前
父节点
当前提交
d7c8050056
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      h3d/impl/TextureCache.hx

+ 2 - 2
h3d/impl/TextureCache.hx

@@ -61,8 +61,8 @@ class TextureCache {
 		return allocTarget(name, Math.ceil(e.width * scale), Math.ceil(e.height * scale), defaultDepth, format);
 	}
 
-	public function allocTileTarget( name : String, tile : h2d.Tile, defaultDepth=false, ?format:hxd.PixelFormat, ?flags:Array<h3d.mat.Data.TextureFlags> ) {
-		return allocTarget( name, tile.iwidth, tile.iheight, defaultDepth, format, flags );
+	public function allocTileTarget( name : String, tile : h2d.Tile, defaultDepth=false, ?format:hxd.PixelFormat ) {
+		return allocTarget( name, tile.iwidth, tile.iheight, defaultDepth, format );
 	}
 
 	public function dispose() {