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