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:
parent
122a97b9c8
commit
001b9da6d8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue