mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-11-28 08:43:57 +00:00
Remove XWayland-specific hardware decoding warnings
libva has supported DRI3 on XWayland for years now.
This commit is contained in:
1 parent
48ac42717b
commit
d0ce158513
2 files changed
+1
-18
No files matched your search
@@ -882,10 +882,6 @@ int main(int argc, char *argv[])
|
||||
// After the QGuiApplication is created, the platform stuff will be initialized
|
||||
// and we can set the SDL video driver to match Qt.
|
||||
if (QGuiApplication::platformName() == "xcb") {
|
||||
if (WMUtils::isRunningWayland()) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Detected XWayland. This will probably break hardware decoding! Try running with QT_QPA_PLATFORM=wayland or switch to X11.");
|
||||
}
|
||||
qputenv("SDL_VIDEODRIVER", "x11");
|
||||
}
|
||||
else if (QGuiApplication::platformName().startsWith("wayland")) {
|
||||
|
||||
Reference in new issue
Block a user