We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5107841 commit 8d090a7Copy full SHA for 8d090a7
library/graphics/GraphicsInitializer.cc
@@ -32,6 +32,10 @@ namespace gf {
32
if (!g_graphics_loaded.exchange(true)) { // we are the first
33
// initialize SDL
34
35
+#ifdef SDL_PLATFORM_LINUX
36
+ SDL_SetHint(SDL_HINT_VIDEO_DRIVER, "wayland,x11");
37
+#endif
38
+
39
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMEPAD)) {
40
Log::error("Unable to initialize SDL: '{}'", SDL_GetError());
41
return;
0 commit comments