2
0
Эх сурвалжийг харах

Bitmap: tileWrap, check power of two only on Flash

Tom SPIRA 5 жил өмнө
parent
commit
f65faa958e
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      h2d/Bitmap.hx

+ 2 - 0
h2d/Bitmap.hx

@@ -29,11 +29,13 @@ class Bitmap extends Drawable {
 		this.tile = tile;
 	}
 
+	#if flash
 	override function set_tileWrap(b) {
 		if( b && tile != null && tile.getTexture().flags.has(IsNPOT) )
 			throw "Cannot set tileWrap on a non power-of-two texture";
 		return tileWrap = b;
 	}
+	#end
 
 	override function getBoundsRec( relativeTo : Object, out : h2d.col.Bounds, forSize : Bool ) {
 		super.getBoundsRec(relativeTo, out, forSize);