Explorar o código

fix Pixels.convert for S3TC formats

trethaller %!s(int64=4) %!d(string=hai) anos
pai
achega
1da456833e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/Pixels.hx

+ 1 - 1
hxd/Pixels.hx

@@ -324,7 +324,7 @@ class Pixels {
 	}
 
 	public function convert( target : PixelFormat ) {
-		if( format == target )
+		if( format == target || format.equals(target) )
 			return;
 		willChange();
 		var bytes : hxd.impl.UncheckedBytes = bytes;