[OpenTK] Only init X11 if SDL2 is not used
This commit is contained in:
parent
6186373df1
commit
c40115e223
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ namespace OpenTK
|
||||||
RunningOnSdl2 = DetectSdl2();
|
RunningOnSdl2 = DetectSdl2();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (runningOnLinux || options.Backend == PlatformBackend.PreferX11)
|
if ((runningOnLinux && !RunningOnSdl2) || options.Backend == PlatformBackend.PreferX11)
|
||||||
{
|
{
|
||||||
runningOnX11 = DetectX11();
|
runningOnX11 = DetectX11();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue