qt: Partially fix Wayland support. (#7054)

* qt: Partially fix Wayland on NVIDIA.

* qt: Fix Vulkan under Wayland.

Showing and hiding the window here messes up the surface,
causing an instant crash on load.

* qt: Properly set up GLES context when requested.
This commit is contained in:
Steveice10 2023-10-09 14:58:38 -07:00 committed by GitHub
parent 6244f9e3fd
commit 6cfd00e42d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 11 deletions

View file

@ -1270,10 +1270,6 @@ void GMainWindow::BootGame(const QString& filename) {
setMouseTracking(true);
}
// show and hide the render_window to create the context
render_window->show();
render_window->hide();
loading_screen->Prepare(system.GetAppLoader());
loading_screen->show();