Browse Source

Update to latest master and fix allocTileTarget

Yanrishatum 6 years ago
parent
commit
d7c8050056
1 changed files with 2 additions and 2 deletions
  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() {