summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-02-08 15:08:04 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-02-08 15:13:25 (GMT)
commitc624935a958783d3314fe6c2f6845e6b51a97f95 (patch)
tree242df186364bb86e77463d55fffb8a3b03e66963 /src/opengl
parent43a9c48554579d76e1f1267fbd70f488f22fd408 (diff)
downloadQt-c624935a958783d3314fe6c2f6845e6b51a97f95.zip
Qt-c624935a958783d3314fe6c2f6845e6b51a97f95.tar.gz
Qt-c624935a958783d3314fe6c2f6845e6b51a97f95.tar.bz2
Add a pixmap modification hook to blur pixmap filter cache
We probably want to kick out filtered pixmaps from the cache when the source pixmap is modified as well as just destroyed. Reviewed-By: Samuel
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qglpixmapfilter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qglpixmapfilter.cpp b/src/opengl/qglpixmapfilter.cpp
index 37bb7c0..d5a11d9 100644
--- a/src/opengl/qglpixmapfilter.cpp
+++ b/src/opengl/qglpixmapfilter.cpp
@@ -394,6 +394,7 @@ void QGLBlurTextureCache::insertBlurTextureInfo(const QPixmap &pixmap, QGLBlurTe
static bool hookAdded = false;
if (!hookAdded) {
QImagePixmapCleanupHooks::instance()->addPixmapDataDestructionHook(pixmapDestroyed);
+ QImagePixmapCleanupHooks::instance()->addPixmapDataModificationHook(pixmapDestroyed);
hookAdded = true;
}