mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (Diligent/Drawing): Prevent shader missing when shader has been deleted.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user