Fix BGR channels being swapped wrong
This commit is contained in:
parent
d02ffca772
commit
b021e96c52
@ -639,6 +639,9 @@ namespace Toolbox.Library
|
|||||||
byte[] imageData = new byte[0];
|
byte[] imageData = new byte[0];
|
||||||
bool DontSwapRG = false;
|
bool DontSwapRG = false;
|
||||||
|
|
||||||
|
if (Format.ToString().StartsWith("B"))
|
||||||
|
DontSwapRG = true;
|
||||||
|
|
||||||
if (PlatformSwizzle == PlatformSwizzle.Platform_3DS)
|
if (PlatformSwizzle == PlatformSwizzle.Platform_3DS)
|
||||||
{
|
{
|
||||||
imageData = CTR_3DS.DecodeBlock(data, (int)Width, (int)Height, Format);
|
imageData = CTR_3DS.DecodeBlock(data, (int)Width, (int)Height, Format);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user