From c40115e223056b4cfd71a0d5867aff5cded344f9 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 27 Apr 2014 22:41:24 +0200 Subject: [PATCH] [OpenTK] Only init X11 if SDL2 is not used --- Source/OpenTK/Configuration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Configuration.cs b/Source/OpenTK/Configuration.cs index 0f3e99af..10670dff 100644 --- a/Source/OpenTK/Configuration.cs +++ b/Source/OpenTK/Configuration.cs @@ -306,7 +306,7 @@ namespace OpenTK RunningOnSdl2 = DetectSdl2(); } - if (runningOnLinux || options.Backend == PlatformBackend.PreferX11) + if ((runningOnLinux && !RunningOnSdl2) || options.Backend == PlatformBackend.PreferX11) { runningOnX11 = DetectX11(); }