[Fix] (Diligent/Drawing): Prevent shader missing when shader has been deleted.

This commit is contained in:
BZLZHH
2025-06-21 17:04:32 +08:00
parent 99dd2f5dec
commit f6c416bdf1
@@ -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;