mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-10 23:35:29 +00:00
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
30aa9ff194
commit
2cf543d988
|
@ -44,8 +44,8 @@ namespace OpenTK
|
||||||
throw new ArgumentNullException("control");
|
throw new ArgumentNullException("control");
|
||||||
|
|
||||||
if (Configuration.RunningOnWindows) return new WinGLControl(mode, 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.RunningOnMacOS) return new CarbonGLControl(mode, control);
|
||||||
|
else if (Configuration.RunningOnX11) return new X11GLControl(mode, control);
|
||||||
else throw new PlatformNotSupportedException();
|
else throw new PlatformNotSupportedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue