From 938b92277faa96386c766c8c0522fd1419443449 Mon Sep 17 00:00:00 2001 From: BZLZHH <69153940+BZLZHH@users.noreply.github.com> Date: Sun, 1 Feb 2026 09:23:25 +0800 Subject: [PATCH] [Fix] (MG_State/ProgramState): Correct compiling flags in ShaderObject::Compile --- MobileGL/MG_State/GLState/ProgramState/ShaderObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileGL/MG_State/GLState/ProgramState/ShaderObject.cpp b/MobileGL/MG_State/GLState/ProgramState/ShaderObject.cpp index 3d132e67..0bce81e2 100644 --- a/MobileGL/MG_State/GLState/ProgramState/ShaderObject.cpp +++ b/MobileGL/MG_State/GLState/ProgramState/ShaderObject.cpp @@ -32,7 +32,7 @@ namespace MobileGL { // like a real OpenGL driver at linking stage // Will compile for other backends later. ShaderAttrib attrib{ - .shaderType = MG_Util::ConvertShaderStageToGLEnum(m_stage), .sourceStr = m_source, .flags = 0}; + .shaderType = MG_Util::ConvertShaderStageToGLEnum(m_stage), .sourceStr = m_source, .flags = ShaderCompileBits::CompileForOpenGL}; auto result = ShaderCompiler::CompileShader(attrib); if (result) { @@ -52,4 +52,4 @@ namespace MobileGL { } } // namespace GLState } // namespace MG_State -} // namespace MobileGL \ No newline at end of file +} // namespace MobileGL