summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-07-28 12:46:21 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-07-28 12:47:35 (GMT)
commit928eb3dee17f43d54262d1f3dfc5212f183e6ce9 (patch)
tree43d4b5a7ede9dd9156047abea70f8d9defce0b59 /src/opengl/gl2paintengineex/qglengineshadermanager_p.h
parentdbdc54791e585f3c6bf62c1a091ef844a66483ba (diff)
downloadQt-928eb3dee17f43d54262d1f3dfc5212f183e6ce9.zip
Qt-928eb3dee17f43d54262d1f3dfc5212f183e6ce9.tar.gz
Qt-928eb3dee17f43d54262d1f3dfc5212f183e6ce9.tar.bz2
Improve GL filter performance by caching custom shader programs.
This brings performance back up to where it was pre-merge.
Diffstat (limited to 'src/opengl/gl2paintengineex/qglengineshadermanager_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qglengineshadermanager_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadermanager_p.h b/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
index 69574ba..8122a08 100644
--- a/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
+++ b/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
@@ -408,6 +408,9 @@ public:
Q_ENUMS(ShaderName)
#endif
+private slots:
+ void shaderDestroyed(QObject *shader);
+
private:
QGLContext* ctx;
bool shaderProgNeedsChanging;