Permalink
Browse files

[Linux] Fixed X11 vs KMS detection

  • Loading branch information...
1 parent 4aa2dcf commit a30ec9003b544fc2dbbacdf4006cd57fca7ce2c4 @thefiddler thefiddler committed Jul 18, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/OpenTK/Configuration.cs
  2. +1 −1 Source/OpenTK/Platform/Factory.cs
@@ -95,7 +95,7 @@ public static bool RunningOnSdl2
#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 @@ static Factory()
// 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();

0 comments on commit a30ec90

Please sign in to comment.