aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs2
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs14
2 files changed, 13 insertions, 3 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs
index 03c3ef52..17bf6291 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs
@@ -74,6 +74,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
case GalTextureFormat.BC1: return PixelInternalFormat.CompressedRgbaS3tcDxt1Ext;
case GalTextureFormat.BC2: return PixelInternalFormat.CompressedRgbaS3tcDxt3Ext;
case GalTextureFormat.BC3: return PixelInternalFormat.CompressedRgbaS3tcDxt5Ext;
+ case GalTextureFormat.BC4: return PixelInternalFormat.CompressedRedRgtc1;
+ case GalTextureFormat.BC5: return PixelInternalFormat.CompressedRgRgtc2;
}
throw new NotImplementedException(Format.ToString());
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
index 681e6d67..b7c8999e 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
@@ -85,9 +85,17 @@ namespace Ryujinx.Graphics.Gal.OpenGL
private static bool IsCompressedTextureFormat(GalTextureFormat Format)
{
- return Format == GalTextureFormat.BC1 ||
- Format == GalTextureFormat.BC2 ||
- Format == GalTextureFormat.BC3;
+ switch (Format)
+ {
+ case GalTextureFormat.BC1:
+ case GalTextureFormat.BC2:
+ case GalTextureFormat.BC3:
+ case GalTextureFormat.BC4:
+ case GalTextureFormat.BC5:
+ return true;
+ }
+
+ return false;
}
private int EnsureTextureInitialized(int TexIndex)