From c6f6ef568710822de5a5ee87d7667a5a19c28b71 Mon Sep 17 00:00:00 2001 From: BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> Date: Fri, 17 Jan 2025 23:42:58 +0100 Subject: [PATCH] Compatibility: Fix certain gl format mappings --- drivers/gles3/storage/texture_storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gles3/storage/texture_storage.cpp b/drivers/gles3/storage/texture_storage.cpp index e74747954f51..d8867cdb5fae 100644 --- a/drivers/gles3/storage/texture_storage.cpp +++ b/drivers/gles3/storage/texture_storage.cpp @@ -492,7 +492,7 @@ Ref TextureStorage::_get_gl_image_and_format(const Ref &p_image, I case Image::FORMAT_RGTC_R: { if (config->rgtc_supported) { r_gl_internal_format = _EXT_COMPRESSED_RED_RGTC1_EXT; - r_gl_format = GL_RGBA; + r_gl_format = GL_RED; r_gl_type = GL_UNSIGNED_BYTE; r_compressed = true; } else { @@ -502,7 +502,7 @@ Ref TextureStorage::_get_gl_image_and_format(const Ref &p_image, I case Image::FORMAT_RGTC_RG: { if (config->rgtc_supported) { r_gl_internal_format = _EXT_COMPRESSED_RED_GREEN_RGTC2_EXT; - r_gl_format = GL_RGBA; + r_gl_format = GL_RG; r_gl_type = GL_UNSIGNED_BYTE; r_compressed = true; } else {