From 4c0cc8b038b130a15e578d5be8ce8987ded3e4e0 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Tue, 6 Jan 2026 09:29:50 +0800 Subject: [PATCH] [Fix] (MG_Util/Texture): use proper `GL_RGBA16` to unbreak gbuffer unpack in some shaders --- MobileGL/MG_Util/Texture/TextureFormatProcessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileGL/MG_Util/Texture/TextureFormatProcessor.cpp b/MobileGL/MG_Util/Texture/TextureFormatProcessor.cpp index fa8c99c6..27843c74 100644 --- a/MobileGL/MG_Util/Texture/TextureFormatProcessor.cpp +++ b/MobileGL/MG_Util/Texture/TextureFormatProcessor.cpp @@ -154,8 +154,8 @@ namespace MobileGL::MG_Util::TextureFormatProcessor { case GL_RGBA16: { // TODO: check for extension GL_EXT_texture_norm16 for eligibility of (GL_RGBA16, GL_UNSIGNED_SHORT) // Most Mali does not support this (< Mali-G6xx, some G720?) - if (outInternalFormat) *outInternalFormat = GL_RGBA16F; - if (outType) *outType = GL_FLOAT; + if (outInternalFormat) *outInternalFormat = GL_RGBA16; + if (outType) *outType = GL_UNSIGNED_SHORT; if (outFormat) *outFormat = GL_RGBA; break; }