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
This commit is contained in:
parent
e4a7253ac3
commit
437e541b69
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue