mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 23:50:46 -07:00
Swap BGR565 components by changing the format (#2577)
This commit is contained in:
@ -204,7 +204,18 @@ namespace Ryujinx.Graphics.OpenGL.Image
|
||||
|
||||
if (forceBgra)
|
||||
{
|
||||
pixelFormat = PixelFormat.Bgra;
|
||||
if (pixelType == PixelType.UnsignedShort565)
|
||||
{
|
||||
pixelType = PixelType.UnsignedShort565Reversed;
|
||||
}
|
||||
else if (pixelType == PixelType.UnsignedShort565Reversed)
|
||||
{
|
||||
pixelType = PixelType.UnsignedShort565;
|
||||
}
|
||||
else
|
||||
{
|
||||
pixelFormat = PixelFormat.Bgra;
|
||||
}
|
||||
}
|
||||
|
||||
int faces = 1;
|
||||
|
Reference in New Issue
Block a user