mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-29 09:10:01 -06:00
Swap BGR565 components by changing the format (#2577)
This commit is contained in:
@ -203,9 +203,20 @@ namespace Ryujinx.Graphics.OpenGL.Image
|
|||||||
PixelType pixelType = format.PixelType;
|
PixelType pixelType = format.PixelType;
|
||||||
|
|
||||||
if (forceBgra)
|
if (forceBgra)
|
||||||
|
{
|
||||||
|
if (pixelType == PixelType.UnsignedShort565)
|
||||||
|
{
|
||||||
|
pixelType = PixelType.UnsignedShort565Reversed;
|
||||||
|
}
|
||||||
|
else if (pixelType == PixelType.UnsignedShort565Reversed)
|
||||||
|
{
|
||||||
|
pixelType = PixelType.UnsignedShort565;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
pixelFormat = PixelFormat.Bgra;
|
pixelFormat = PixelFormat.Bgra;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int faces = 1;
|
int faces = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user