mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 09:48:19 -05:00
gl_device: Use a more robust way to use strict context mode
Instead of checking a environment variable which may not actually exist or is just wrong, ask QT if it's running on the wayland platform.
This commit is contained in:
@ -314,6 +314,8 @@ GRenderWindow::GRenderWindow(GMainWindow* parent, EmuThread* emu_thread_,
|
||||
input_subsystem->Initialize();
|
||||
this->setMouseTracking(true);
|
||||
|
||||
strict_context_required = QGuiApplication::platformName() == QStringLiteral("wayland");
|
||||
|
||||
connect(this, &GRenderWindow::FirstFrameDisplayed, parent, &GMainWindow::OnLoadComplete);
|
||||
connect(this, &GRenderWindow::ExecuteProgramSignal, parent, &GMainWindow::OnExecuteProgram,
|
||||
Qt::QueuedConnection);
|
||||
|
Reference in New Issue
Block a user