aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Image/TextureView.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Image/TextureView.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureView.cs b/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
index d4d49075..a70ab595 100644
--- a/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
+++ b/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
@@ -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;