MacOS can have an X server installed. Modified the code so that it prefers the native Carbon/Quartz platform driver over X in this case.
This commit is contained in:
parent
67fed8705f
commit
4278538317
1 changed files with 2 additions and 2 deletions
|
@ -46,15 +46,15 @@ namespace OpenTK.Platform
|
|||
static Factory()
|
||||
{
|
||||
if (Configuration.RunningOnWindows) Default = new Windows.WinFactory();
|
||||
else if (Configuration.RunningOnX11) Default = new X11.X11Factory();
|
||||
else if (Configuration.RunningOnMacOS) Default = new MacOS.MacOSFactory();
|
||||
else if (Configuration.RunningOnX11) Default = new X11.X11Factory();
|
||||
else Default = new UnsupportedPlatform();
|
||||
|
||||
if (Egl.Egl.IsSupported)
|
||||
{
|
||||
if (Configuration.RunningOnWindows) Embedded = new Egl.EglWinPlatformFactory();
|
||||
else if (Configuration.RunningOnX11) Embedded = new Egl.EglX11PlatformFactory();
|
||||
else if (Configuration.RunningOnMacOS) Embedded = new Egl.EglMacPlatformFactory();
|
||||
else if (Configuration.RunningOnX11) Embedded = new Egl.EglX11PlatformFactory();
|
||||
else Embedded = new UnsupportedPlatform();
|
||||
}
|
||||
else Embedded = new UnsupportedPlatform();
|
||||
|
|
Loading…
Reference in a new issue