diff --git a/plugins/scenes/opengl/scene_opengl.cpp b/plugins/scenes/opengl/scene_opengl.cpp --- a/plugins/scenes/opengl/scene_opengl.cpp +++ b/plugins/scenes/opengl/scene_opengl.cpp @@ -388,6 +388,8 @@ timer = new QTimer(gs_debuggedScene); timer->setSingleShot(true); QObject::connect(timer.data(), &QTimer::timeout, gs_debuggedScene, []() { + Scene *scene = Compositor::self()->scene(); + scene->makeOpenGLContextCurrent(); GLVertexBuffer::cleanup(); GLVertexBuffer::initStatic(); });