diff -r 89e065397ea6 -r e24348a560a6 src/opengl/qpaintengine_opengl.cpp --- a/src/opengl/qpaintengine_opengl.cpp Thu May 27 13:40:48 2010 +0300 +++ b/src/opengl/qpaintengine_opengl.cpp Fri Jun 11 14:24:45 2010 +0300 @@ -1453,6 +1453,11 @@ d->device->endPaint(); qt_mask_texture_cache()->maintainCache(); +#if defined(Q_WS_X11) + // clear out the references we hold for textures bound with the + // texture_from_pixmap extension + ctx->d_func()->boundPixmaps.clear(); +#endif return true; }