diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-08 14:10:25 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-10 09:53:07 (GMT) |
commit | 79a83854bcae35c22e02212a775fcbf825c1439d (patch) | |
tree | b11b47485b89bb5d51ae7b5ebc04f606bc614004 /src/opengl | |
parent | 3ae7c0ca536c82659f401c3bed0370f765de8aee (diff) | |
download | Qt-79a83854bcae35c22e02212a775fcbf825c1439d.zip Qt-79a83854bcae35c22e02212a775fcbf825c1439d.tar.gz Qt-79a83854bcae35c22e02212a775fcbf825c1439d.tar.bz2 |
Make sure pixmap hooks get installed so EGL surfaces are cleaned up
Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qpixmapdata_x11gl_egl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qpixmapdata_x11gl_egl.cpp b/src/opengl/qpixmapdata_x11gl_egl.cpp index 34915f5..b6c33f2 100644 --- a/src/opengl/qpixmapdata_x11gl_egl.cpp +++ b/src/opengl/qpixmapdata_x11gl_egl.cpp @@ -138,6 +138,10 @@ bool QX11GLPixmapData::hasX11GLPixmaps() break; } } + + // The pixmap surface destruction hooks are installed by QGLTextureCache, so we + // must make sure this is instanciated: + QGLTextureCache::instance(); } while (0); if (!haveX11Pixmaps) { |