From 001b9da6d892febd5f2052072ddc62cf90afe417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 24 Apr 2011 20:20:01 +0200 Subject: [PATCH] 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 --- scene_opengl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index fc249ce85a..a3a8da8246 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -1082,6 +1082,7 @@ SceneOpenGL::EffectFrame::~EffectFrame() void SceneOpenGL::EffectFrame::free() { + glFlush(); delete m_texture; m_texture = NULL; delete m_textTexture;