Commit 437e541b authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #222

SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O,
when it should be loading the OpenGL.framework code instead

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401763
parent e4a7253a
...@@ -168,7 +168,11 @@ void Mac_GL_SwapBuffers(_THIS) ...@@ -168,7 +168,11 @@ void Mac_GL_SwapBuffers(_THIS)
int Mac_GL_LoadLibrary(_THIS, const char *location) int Mac_GL_LoadLibrary(_THIS, const char *location)
{ {
if (location == NULL) if (location == NULL)
#if __MACH__
location = "/System/Library/Frameworks/OpenGL.framework/OpenGL";
#else
location = "OpenGLLibrary"; location = "OpenGLLibrary";
#endif
this->hidden->libraryHandle = SDL_LoadObject(location); this->hidden->libraryHandle = SDL_LoadObject(location);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment