From 2cf543d988454204eb81961200e875e178b51605 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 6 Nov 2009 18:51:06 +0000 Subject: [PATCH] MacOS may have an X server installed. Prefers the native Carbon/Quartz platform driver over X in this case (same issue as rev. 2465). --- Source/GLControl/GLControlFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GLControl/GLControlFactory.cs b/Source/GLControl/GLControlFactory.cs index 4040fe99..2ea266c6 100644 --- a/Source/GLControl/GLControlFactory.cs +++ b/Source/GLControl/GLControlFactory.cs @@ -44,8 +44,8 @@ namespace OpenTK throw new ArgumentNullException("control"); if (Configuration.RunningOnWindows) return new WinGLControl(mode, control); - else if (Configuration.RunningOnX11) return new X11GLControl(mode, control); else if (Configuration.RunningOnMacOS) return new CarbonGLControl(mode, control); + else if (Configuration.RunningOnX11) return new X11GLControl(mode, control); else throw new PlatformNotSupportedException(); } }