mirror of
https://github.com/gwm17/glfw.git
synced 2025-02-24 14:18:50 -05:00
Cocoa: Fix SDK version numbers
The pattern for version 10.10 and later was incorrectly applied to version number for 10.8. Fixes #1232.
This commit is contained in:
parent
b4c99aacd4
commit
5f8108e8a9
|
@ -872,7 +872,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
||||||
|
|
||||||
- (void)loadMainMenu
|
- (void)loadMainMenu
|
||||||
{
|
{
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 100800
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||||
[[NSBundle mainBundle] loadNibNamed:@"MainMenu"
|
[[NSBundle mainBundle] loadNibNamed:@"MainMenu"
|
||||||
owner:NSApp
|
owner:NSApp
|
||||||
topLevelObjects:&nibObjects];
|
topLevelObjects:&nibObjects];
|
||||||
|
|
|
@ -175,7 +175,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
|
||||||
// Info.plist for unbundled applications
|
// Info.plist for unbundled applications
|
||||||
// HACK: This assumes that NSOpenGLPixelFormat will remain
|
// HACK: This assumes that NSOpenGLPixelFormat will remain
|
||||||
// a straightforward wrapper of its CGL counterpart
|
// a straightforward wrapper of its CGL counterpart
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 100800
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||||
addAttrib(kCGLPFASupportsAutomaticGraphicsSwitching);
|
addAttrib(kCGLPFASupportsAutomaticGraphicsSwitching);
|
||||||
#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/
|
#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user