mirror of https://github.com/mgba-emu/mgba.git
Qt: Detect Wayland as EGL
This commit is contained in:
parent
420da428bd
commit
8739b22fbc
|
@ -738,7 +738,7 @@ void PainterGL::swapInterval(int interval) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_EGL
|
#ifdef USE_EGL
|
||||||
if (QGuiApplication::platformName().contains("egl")) {
|
if (QGuiApplication::platformName().contains("egl") || QGuiApplication::platformName() == "wayland") {
|
||||||
EGLDisplay display = eglGetCurrentDisplay();
|
EGLDisplay display = eglGetCurrentDisplay();
|
||||||
eglSwapInterval(display, interval);
|
eglSwapInterval(display, interval);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue