[Fix] (MG_Backend/DirectVulkan): make glmark2 work on Magma

This commit is contained in:
2026-06-07 16:24:30 +08:00
parent ad1ca4ea92
commit b0de886f8e
15 changed files with 157 additions and 34 deletions
@@ -48,6 +48,7 @@ namespace MobileGL {
TextureInputFormat ConvertGLEnumToTextureInputFormat(GLenum format) {
switch (format) {
case GL_ALPHA:
case GL_RED:
return TextureInputFormat::Red;
case GL_RG:
@@ -225,6 +226,7 @@ namespace MobileGL {
return TextureInternalFormat::DepthComponent;
case GL_DEPTH_STENCIL:
return TextureInternalFormat::DepthStencil;
case GL_ALPHA:
case GL_RED:
return TextureInternalFormat::Red;
case GL_RG: