effects: Make OpenGL context current before deleting framebuffer

When we delete a window we unredirect, when we unredirect, we delete the
framebuffer which requires an openGL context.

handleWindowDeleted is the entry point from workspace events to effects
code, so it's made current here.

BUG: 444665
BUG: 471139
This commit is contained in:
David Edmundson 2023-06-17 13:01:43 +01:00
parent f41d95fef1
commit c5a29b4b66

View file

@ -250,6 +250,7 @@ void OffscreenEffect::handleWindowDamaged(EffectWindow *window)
void OffscreenEffect::handleWindowDeleted(EffectWindow *window)
{
effects->makeOpenGLContextCurrent();
unredirect(window);
}