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:
parent
ab198f15e7
commit
ef4658a647
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue