浏览代码

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;