From f6c416bdf1f2e1acf8c909fb6931f0d2efaafb89 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Sat, 21 Jun 2025 17:04:32 +0800 Subject: [PATCH] [Fix] (Diligent/Drawing): Prevent shader missing when shader has been deleted. --- MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp index 12986c50..871904ed 100644 --- a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp +++ b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp @@ -457,7 +457,7 @@ namespace MG_Diligent { for (GLuint shaderId : programObj.attachedShaders) { auto it = MG_State_T::programState->shaders_.find(shaderId); - if (it != MG_State_T::programState->shaders_.end() && !it->second.markedForDeletion) { + if (it != MG_State_T::programState->shaders_.end()) { std::string shaderSource; if (it->second.type == GL_VERTEX_SHADER) { std::string infoLog;