summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_x11egl.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-10-29 13:28:36 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-10-29 14:18:30 (GMT)
commit4531ffbd8aa2cc0ae656715e449caca1649c18b9 (patch)
tree31432fbebde717f08469d77ee88b3de8f97914df /src/opengl/qgl_x11egl.cpp
parent7881773800c05c09f0e85a80c1cbb678981bd6c0 (diff)
downloadQt-4531ffbd8aa2cc0ae656715e449caca1649c18b9.zip
Qt-4531ffbd8aa2cc0ae656715e449caca1649c18b9.tar.gz
Qt-4531ffbd8aa2cc0ae656715e449caca1649c18b9.tar.bz2
Added QImagePixmapCleanupHooks functions for enabling hooks.
Better than having to befriend QPixmapData and setting is_cached manually. Reviewed-by: Tom Cooksey
Diffstat (limited to 'src/opengl/qgl_x11egl.cpp')
-rw-r--r--src/opengl/qgl_x11egl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp
index 7180682..9b20297 100644
--- a/src/opengl/qgl_x11egl.cpp
+++ b/src/opengl/qgl_x11egl.cpp
@@ -42,6 +42,7 @@
#include "qgl.h"
#include <private/qt_x11_p.h>
#include <private/qpixmap_x11_p.h>
+#include <private/qimagepixmapcleanuphooks_p.h>
#include <private/qgl_p.h>
#include <private/qpaintengine_opengl_p.h>
#include "qgl_egl_p.h"
@@ -531,7 +532,7 @@ bool Q_OPENGL_EXPORT qt_createEGLSurfaceForPixmap(QPixmapData* pmd, bool readOnl
Q_ASSERT(sizeof(Qt::HANDLE) >= sizeof(EGLSurface)); // Just to make totally sure!
pixmapData->gl_surface = (Qt::HANDLE)pixmapSurface;
- pixmapData->is_cached = true; // Make sure the cleanup hook gets called
+ QImagePixmapCleanupHooks::enableCleanupHooks(pixmapData); // Make sure the cleanup hook gets called
return true;
}