Perform glFlush before deleting the EffectFrame's pixmaps

On NVIDIA it is possible that the actual rendering gets delayed to
after the deletion of the pixmap during the end of fullscreen effects.
This was causing freezes. By using glFlush before deleting the pixmaps
we can ensure that the pixmap is not needed anymore after the pixmaps
are deleted.

BUG: 261323
FIXED-IN: 4.6.3
This commit is contained in:
Martin Gräßlin 2011-04-24 20:20:01 +02:00
parent 122a97b9c8
commit 001b9da6d8

View file

@ -1082,6 +1082,7 @@ SceneOpenGL::EffectFrame::~EffectFrame()
void SceneOpenGL::EffectFrame::free() void SceneOpenGL::EffectFrame::free()
{ {
glFlush();
delete m_texture; delete m_texture;
m_texture = NULL; m_texture = NULL;
delete m_textTexture; delete m_textTexture;