scene: Ensure there's current opengl context when DecorationItem is repainted for last time

BUG: 466186
This commit is contained in:
Vlad Zahorodnii 2023-02-21 13:24:49 +02:00
parent 93815aede4
commit 2de5236e3f

View file

@ -207,6 +207,7 @@ void DecorationItem::handleWindowClosed(Window *original, Deleted *deleted)
m_window = deleted;
// If the decoration is about to be destroyed, render the decoration for the last time.
effects->makeOpenGLContextCurrent();
preprocess();
}