Perform glFlush before deleting the EffectFrame's pixmaps
author Martin Gräßlin
()
committer Martin Gräßlin
()
commit b3737884c0ca8ad8004c39f9d0e38572cde0dc57
tree d93a8aeb137259a9fb61bd875af27f37cbf93939
parent e9410ba51e4674819fc8c37c8f122f1233a8c78a
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
kwin/scene_opengl.cpp