From 2de5236e3fb4372ebafa6132eddfb16a85a331fc Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 21 Feb 2023 13:24:49 +0200 Subject: [PATCH] scene: Ensure there's current opengl context when DecorationItem is repainted for last time BUG: 466186 --- src/scene/decorationitem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scene/decorationitem.cpp b/src/scene/decorationitem.cpp index 7474d9e45e..da28cea937 100644 --- a/src/scene/decorationitem.cpp +++ b/src/scene/decorationitem.cpp @@ -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(); }