[OpenTK] Only init X11 if SDL2 is not used

This commit is contained in:
thefiddler 2014-04-27 22:41:24 +02:00
parent 6186373df1
commit c40115e223

View file

@ -306,7 +306,7 @@ namespace OpenTK
RunningOnSdl2 = DetectSdl2();
}
if (runningOnLinux || options.Backend == PlatformBackend.PreferX11)
if ((runningOnLinux && !RunningOnSdl2) || options.Backend == PlatformBackend.PreferX11)
{
runningOnX11 = DetectX11();
}