|
|
@ -80,15 +80,6 @@ int _glfwPlatformInit(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; |
|
|
|
_glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; |
|
|
|
|
|
|
|
|
|
|
|
_glfw.nsgl.framework = |
|
|
|
|
|
|
|
CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl")); |
|
|
|
|
|
|
|
if (_glfw.nsgl.framework == NULL) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
_glfwInputError(GLFW_PLATFORM_ERROR, |
|
|
|
|
|
|
|
"NSGL: Failed to locate OpenGL framework"); |
|
|
|
|
|
|
|
return GL_FALSE; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_GLFW_USE_CHDIR) |
|
|
|
#if defined(_GLFW_USE_CHDIR) |
|
|
|
changeToResourcesDirectory(); |
|
|
|
changeToResourcesDirectory(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|