mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-27 04:28:52 -05:00
Merged bugfix from 2.7.3-pre.
This commit is contained in:
parent
113bc94042
commit
c32fa805d5
|
@ -477,8 +477,9 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
|||
const _GLFWfbconfig *fbconfig)
|
||||
{
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||
// Fail if OpenGL 3.3 or above was requested
|
||||
if (wndconfig->glMajor > 3 || wndconfig->glMajor == 3 && wndconfig->glMinor > 2)
|
||||
// Fail if any OpenGL version above 2.1 other than 3.2 was requested
|
||||
if (wndconfig->glMajor > 3 ||
|
||||
(wndconfig->glMajor == 3 && wndconfig->glMinor != 2))
|
||||
{
|
||||
_glfwSetError(GLFW_VERSION_UNAVAILABLE,
|
||||
"Cocoa/NSOpenGL: The targeted version of Mac OS X does "
|
||||
|
|
Loading…
Reference in New Issue
Block a user