From 95ae2d91f9d0c9d53b133cbd0164cb37c19e0fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 11 Mar 2023 21:51:39 +0100 Subject: [PATCH] Couple of more GL enums --- Common/GPU/OpenGL/DataFormatGL.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Common/GPU/OpenGL/DataFormatGL.cpp b/Common/GPU/OpenGL/DataFormatGL.cpp index c53190bae2..16529d9f5a 100644 --- a/Common/GPU/OpenGL/DataFormatGL.cpp +++ b/Common/GPU/OpenGL/DataFormatGL.cpp @@ -93,7 +93,18 @@ bool Thin3DFormatToGLFormatAndType(DataFormat fmt, GLuint &internalFormat, GLuin type = GL_FLOAT; alignment = 8; break; - + case DataFormat::BC2_UNORM_BLOCK: + internalFormat = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT; + format = GL_RGBA; + type = GL_FLOAT; + alignment = 16; + break; + case DataFormat::BC3_UNORM_BLOCK: + internalFormat = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT; + format = GL_RGBA; + type = GL_FLOAT; + alignment = 16; + break; case DataFormat::BC7_UNORM_BLOCK: internalFormat = GL_COMPRESSED_RGBA_BPTC_UNORM; format = GL_RGBA;