Explorar el Código

fix Pixels.convert for S3TC formats

trethaller hace 4 años
padre
commit
1da456833e
Se han modificado 1 ficheros con 1 adiciones y 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;