From dc78f9a5b3936fe7cdcc61368c7a5e21ba473608 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 19 Mar 2023 13:51:05 +0100 Subject: [PATCH] Work around an issue with OpenGL on Wayland. --- nageru/main.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2