qt: Fix fullscreen crashes on NVIDIA GPUs

This commit is contained in:
Cacodemon345
2022-07-30 01:45:08 +06:00
committed by GitHub
parent 2ad0c27f71
commit f5bc5f4739

View File

@@ -1467,6 +1467,7 @@ void MainWindow::on_actionFullscreen_triggered() {
ui->statusbar->hide();
ui->toolBar->hide();
showFullScreen();
if (vid_api == 5) ui->stackedWidget->switchRenderer(RendererStack::Renderer::Direct3D9);
}
ui->stackedWidget->onResize(width(), height());
}