]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/main.cpp
Disable wayland backend on Linux and BSD
[xonotic/netradiant.git] / radiant / main.cpp
index ff141f6f529a436a3441584aa54ce9b5fc77d7c0..3df10170085eddb32f17e53830fa55b3495ad5dc 100644 (file)
@@ -506,7 +506,10 @@ int main( int argc, char* argv[] ){
 #if GTK_TARGET == 3
        // HACK: force legacy GL backend as we don't support GL3 yet
        setenv("GDK_GL", "LEGACY", 0);
+#if GDEF_OS_LINUX || GDEF_OS_BSD
+       setenv("GDK_BACKEND", "x11", 0);
 #endif
+#endif // GTK_TARGET == 3
        crt_init();
 
        streams_init();