[Fix] (DiligentEngine): Fix some miscellaneous issues.

This commit is contained in:
BZLZHH
2025-06-08 01:57:13 +08:00
parent 979d31407f
commit 848f110658
3 changed files with 45 additions and 12 deletions
@@ -260,6 +260,8 @@ namespace MG_GL::GL {
if (MG_Diligent::g_ShaderMap.find(shaderId) == MG_Diligent::g_ShaderMap.end() || MG_Diligent::g_ShaderMap[shaderId] == nullptr) {
GLenum shaderType = shaderObj.type;
std::string sourceStr = shaderSources[shaderId];
MG_Util::Debug::LogD("Shader ID: %u, type: %s\nConverted source:\n%s",
shaderId, MG_Util::Debug::GLEnumToString(shaderType), sourceStr.c_str());
Diligent::ShaderCreateInfo ShaderCI;
ShaderCI.Source = sourceStr.c_str();