mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-23 07:01:07 +00:00
[OpenTK] Only init X11 if SDL2 is not used
This commit is contained in:
parent
6186373df1
commit
c40115e223
|
@ -306,7 +306,7 @@ namespace OpenTK
|
|||
RunningOnSdl2 = DetectSdl2();
|
||||
}
|
||||
|
||||
if (runningOnLinux || options.Backend == PlatformBackend.PreferX11)
|
||||
if ((runningOnLinux && !RunningOnSdl2) || options.Backend == PlatformBackend.PreferX11)
|
||||
{
|
||||
runningOnX11 = DetectX11();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue