Qt: Fix fullscreen quitting
This commit is contained in:
parent
2e92d95888
commit
cc3d5a9921
|
@ -655,13 +655,12 @@ void MainWindow::HideRenderWidget(bool reinit)
|
||||||
setWindowTitle(QString::fromStdString(Common::scm_rev_str));
|
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
|
// 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)
|
// graphics backends (e.g. OpenGL to Vulkan). To avoid this the render widget is (safely)
|
||||||
// recreated
|
// recreated
|
||||||
if (reinit)
|
if (reinit)
|
||||||
{
|
{
|
||||||
|
m_render_widget->hide();
|
||||||
disconnect(m_render_widget, &RenderWidget::Closed, this, &MainWindow::ForceStop);
|
disconnect(m_render_widget, &RenderWidget::Closed, this, &MainWindow::ForceStop);
|
||||||
|
|
||||||
m_render_widget->removeEventFilter(this);
|
m_render_widget->removeEventFilter(this);
|
||||||
|
|
Loading…
Reference in New Issue