Procházet zdrojové kódy

fix Pixels.convert for S3TC formats

trethaller před 4 roky
rodič
revize
1da456833e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;