Skip to content

Commit

Permalink
Fixed bug #222
Browse files Browse the repository at this point in the history
SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O,
when it should be loading the OpenGL.framework code instead
  • Loading branch information
slouken committed May 10, 2006
1 parent 8c06657 commit 4481517
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/maccommon/SDL_macgl.c
Expand Up @@ -168,7 +168,11 @@ void Mac_GL_SwapBuffers(_THIS)
int Mac_GL_LoadLibrary(_THIS, const char *location)
{
if (location == NULL)
#if __MACH__
location = "/System/Library/Frameworks/OpenGL.framework/OpenGL";
#else
location = "OpenGLLibrary";
#endif

this->hidden->libraryHandle = SDL_LoadObject(location);

Expand Down

0 comments on commit 4481517

Please sign in to comment.