mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-05 23:10:46 +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
|
#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; } }
|
public static bool RunningOnLinux { get { return runningOnLinux; } }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -53,8 +53,8 @@ namespace OpenTK.Platform
|
||||||
|
|
||||||
// Create regular platform backend
|
// Create regular platform backend
|
||||||
if (Configuration.RunningOnSdl2) Default = new SDL2.Sdl2Factory();
|
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.RunningOnX11) Default = new X11.X11Factory();
|
||||||
|
else if (Configuration.RunningOnLinux) Default = new Linux.LinuxFactory();
|
||||||
else if (Configuration.RunningOnWindows) Default = new Windows.WinFactory();
|
else if (Configuration.RunningOnWindows) Default = new Windows.WinFactory();
|
||||||
else if (Configuration.RunningOnMacOS) Default = new MacOS.MacOSFactory();
|
else if (Configuration.RunningOnMacOS) Default = new MacOS.MacOSFactory();
|
||||||
else Default = new UnsupportedPlatform();
|
else Default = new UnsupportedPlatform();
|
||||||
|
|
Loading…
Reference in a new issue