aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-03-25 21:13:00 +0100
committerdec05eba <dec05eba@protonmail.com>2024-03-25 21:13:00 +0100
commit166991835ff0072b83f9f6ac62ed8ac4ebd27385 (patch)
tree65075eb54f878775436fef004389ee5c99bee980 /src
parent1b6b1e7fc939087084bd2db3eac6a76149f66832 (diff)
Force x11
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7e13ec9..2e8aa32 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -947,6 +947,8 @@ bool CMainApplication::BInit()
// Needed for mpv
SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "no");
+ SDL_SetHint(SDL_HINT_VIDEODRIVER, "x11");
+
m_pCompanionWindow = SDL_CreateWindow( "vr-video-player", nWindowPosX, nWindowPosY, m_nCompanionWindowWidth, m_nCompanionWindowHeight, unWindowFlags );
if (m_pCompanionWindow == NULL)
{