From: Steinar H. Gunderson Date: Sun, 19 Mar 2023 12:51:05 +0000 (+0100) Subject: Work around an issue with OpenGL on Wayland. X-Git-Tag: 2.2.1~12 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=dc78f9a5b3936fe7cdcc61368c7a5e21ba473608;p=nageru Work around an issue with OpenGL on Wayland. --- diff --git a/nageru/main.cpp b/nageru/main.cpp index 212c069..37034ed 100644 --- a/nageru/main.cpp +++ b/nageru/main.cpp @@ -67,6 +67,9 @@ int main(int argc, char *argv[]) global_flags.va_display = QuickSyncEncoder::get_usable_va_display(); } + // The OpenGL widgets do not work well with the native Wayland integration. + setenv("QT_QPA_PLATFORM", "xcb", 0); + if ((global_flags.va_display.empty() || global_flags.va_display[0] != '/') && !global_flags.x264_video_to_disk) { // We normally use EGL for zerocopy, but if we use VA against DRM