From a30ec9003b544fc2dbbacdf4006cd57fca7ce2c4 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Fri, 18 Jul 2014 09:19:37 +0200 Subject: [PATCH] [Linux] Fixed X11 vs KMS detection --- Source/OpenTK/Configuration.cs | 2 +- Source/OpenTK/Platform/Factory.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Configuration.cs b/Source/OpenTK/Configuration.cs index 2e04c77..1b29eae 100644 --- a/Source/OpenTK/Configuration.cs +++ b/Source/OpenTK/Configuration.cs @@ -95,7 +95,7 @@ namespace OpenTK #region public static bool RunningOnLinux - /// Gets a System.Boolean indicating whether OpenTK is running on an X11 platform. + /// Gets a System.Boolean indicating whether OpenTK is running on the Linux kernel. public static bool RunningOnLinux { get { return runningOnLinux; } } #endregion diff --git a/Source/OpenTK/Platform/Factory.cs b/Source/OpenTK/Platform/Factory.cs index 5cc0bfe..2bcfada 100644 --- a/Source/OpenTK/Platform/Factory.cs +++ b/Source/OpenTK/Platform/Factory.cs @@ -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(); -- 2.7.4