From 7b2f471d4ff07bc811bbd84919c6708ab0f399f4 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 10 Apr 2018 18:54:50 -0300 Subject: [GPU] Add support for the BC4/5 texture formats --- Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs') 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) -- cgit v1.2.3