diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index b7779dc159..1afa2bafdd 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -655,13 +655,12 @@ void MainWindow::HideRenderWidget(bool reinit) setWindowTitle(QString::fromStdString(Common::scm_rev_str)); } - m_render_widget->hide(); - // The following code works around a driver bug that would lead to Dolphin crashing when changing // graphics backends (e.g. OpenGL to Vulkan). To avoid this the render widget is (safely) // recreated if (reinit) { + m_render_widget->hide(); disconnect(m_render_widget, &RenderWidget::Closed, this, &MainWindow::ForceStop); m_render_widget->removeEventFilter(this);