[Fix] (MG_Util/Texture): infer RGBA8 for packed RGBA uploads

(cherry picked from commit 1146188ed4)
This commit is contained in:
2026-07-16 03:41:29 -04:00
parent c247ad5807
commit 35626da5c4
2 changed files with 53 additions and 0 deletions
@@ -129,6 +129,8 @@ namespace MobileGL {
case TextureInternalFormat::RGBA: {
switch (type) {
case TexturePixelDataType::UnsignedByte:
case TexturePixelDataType::UnsignedInt8888:
case TexturePixelDataType::UnsignedInt8888Rev:
return TextureInternalFormat::RGBA8;
case TexturePixelDataType::UnsignedShort:
return TextureInternalFormat::RGBA16;