Qt: Detect Wayland as EGL

This commit is contained in:
Vicki Pfau 2023-04-20 20:12:53 -07:00
parent 420da428bd
commit 8739b22fbc
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}