diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-07-28 12:46:21 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-07-28 12:47:35 (GMT) |
commit | 928eb3dee17f43d54262d1f3dfc5212f183e6ce9 (patch) | |
tree | 43d4b5a7ede9dd9156047abea70f8d9defce0b59 /src/opengl/gl2paintengineex/qglengineshadermanager_p.h | |
parent | dbdc54791e585f3c6bf62c1a091ef844a66483ba (diff) | |
download | Qt-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.h | 3 |
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; |