diff options
-rw-r--r-- | src/opengl/gl2paintengineex/qglengineshadermanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp index 6363212..848a7f1 100644 --- a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp +++ b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp @@ -343,6 +343,8 @@ void QGLEngineShaderManager::removeCustomStage(QGLCustomShaderStage* stage) delete compiledShader; compiledShaders[CustomImageSrcFragmentShader] = 0; + customSrcStage = 0; + customSrcStagePrev = 0; shaderProgNeedsChanging = true; } |