소스 검색

fix Pixels.convert for S3TC formats

trethaller 4 년 전
부모
커밋
1da456833e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;