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:
parent
f41d95fef1
commit
c5a29b4b66
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ void OffscreenEffect::handleWindowDamaged(EffectWindow *window)
|
|||
|
||||
void OffscreenEffect::handleWindowDeleted(EffectWindow *window)
|
||||
{
|
||||
effects->makeOpenGLContextCurrent();
|
||||
unredirect(window);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue