aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-09-11 12:48:13 -0300
committergdkchan <gab.dark.100@gmail.com>2018-09-11 12:48:13 -0300
commite5917f896847b7d76ec98d846af87804fcd47a2e (patch)
tree0b35e6bf97ff841008cd1b8fb9f783630722c35b /Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
parentdb1a759c5927f2df9ddd9a08fd691f99bf10e6f8 (diff)
Fixup image error message and add G8R8 to size query (#410)
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
index 82f9c913..7e1c0e53 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
@@ -82,7 +82,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
Image.Height,
1);
- Image.Format = GalImageFormat.R8G8 | (Image.Format & GalImageFormat.FormatMask);
+ Image.Format = GalImageFormat.R8G8 | (Image.Format & GalImageFormat.TypeMask);
}
(PixelInternalFormat InternalFormat, PixelFormat Format, PixelType Type) = OGLEnumConverter.GetImageFormat(Image.Format);