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