forked from Mirror/Ryujinx
Swap BGR565 components by changing the format (#2577)
This commit is contained in:
parent
6d9bc7cf90
commit
5b8ceb9173
1 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue