MacOS may have an X server installed. Prefers the native Carbon/Quartz platform driver over X in this case (same issue as rev. 2465).

This commit is contained in:
the_fiddler 2009-11-06 18:51:06 +00:00
parent 30aa9ff194
commit 2cf543d988

View file

@ -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();
}
}