Merge pull request #6490 from spycrab/qt_fs_warn
Qt: Fix fullscreen quitting
This commit is contained in:
commit
0f60e68e0b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue