[Fix] (MG_Util/ShaderTranspiler): process shader version directive correctly when it is not the first line

This commit is contained in:
2025-12-30 21:20:37 +08:00
parent 69caca5903
commit aa83aa1519
2 changed files with 9 additions and 7 deletions
@@ -34,6 +34,8 @@ namespace MobileGL {
} else {
m_compileStatus = false;
m_infoLog = result.error().log;
MGLOG_D("ShaderObject::Compile: Shader %d compilation failed.\nSource:\n%s\nInfoLog:\n%s\nSetting m_compileStatus = false as a result.",
m_externalIndex, m_source.c_str(), m_infoLog.c_str());
}
}