mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Fix] (MG_Util/Texture): use proper GL_RGBA16 to unbreak gbuffer unpack in some shaders
This commit is contained in:
@@ -154,8 +154,8 @@ namespace MobileGL::MG_Util::TextureFormatProcessor {
|
|||||||
case GL_RGBA16: {
|
case GL_RGBA16: {
|
||||||
// TODO: check for extension GL_EXT_texture_norm16 for eligibility of (GL_RGBA16, GL_UNSIGNED_SHORT)
|
// 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?)
|
// Most Mali does not support this (< Mali-G6xx, some G720?)
|
||||||
if (outInternalFormat) *outInternalFormat = GL_RGBA16F;
|
if (outInternalFormat) *outInternalFormat = GL_RGBA16;
|
||||||
if (outType) *outType = GL_FLOAT;
|
if (outType) *outType = GL_UNSIGNED_SHORT;
|
||||||
if (outFormat) *outFormat = GL_RGBA;
|
if (outFormat) *outFormat = GL_RGBA;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user