mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 11:25:27 +00:00
[Linux] Fixed X11 vs KMS detection
This commit is contained in:
parent
4aa2dcf5a3
commit
a30ec9003b
|
@ -95,7 +95,7 @@ namespace OpenTK
|
|||
|
||||
#region public static bool RunningOnLinux
|
||||
|
||||
/// <summary>Gets a System.Boolean indicating whether OpenTK is running on an X11 platform.</summary>
|
||||
/// <summary>Gets a System.Boolean indicating whether OpenTK is running on the Linux kernel.</summary>
|
||||
public static bool RunningOnLinux { get { return runningOnLinux; } }
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -53,8 +53,8 @@ namespace OpenTK.Platform
|
|||
|
||||
// Create regular platform backend
|
||||
if (Configuration.RunningOnSdl2) Default = new SDL2.Sdl2Factory();
|
||||
else if (Configuration.RunningOnLinux) Default = new Linux.LinuxFactory();
|
||||
else if (Configuration.RunningOnX11) Default = new X11.X11Factory();
|
||||
else if (Configuration.RunningOnLinux) Default = new Linux.LinuxFactory();
|
||||
else if (Configuration.RunningOnWindows) Default = new Windows.WinFactory();
|
||||
else if (Configuration.RunningOnMacOS) Default = new MacOS.MacOSFactory();
|
||||
else Default = new UnsupportedPlatform();
|
||||
|
|
Loading…
Reference in a new issue