From c5c716a12c6b8a7aa5cb5c30873cfe134b4c334c Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Fri, 24 Jul 2009 11:16:02 +1000 Subject: Reset shader stage variables when the custom shader is explicitly removed. --- src/opengl/gl2paintengineex/qglengineshadermanager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v0.12