Commit da591ff4 authored by Nigel Stewart's avatar Nigel Stewart
Browse files

Resolve ID: 3480806 - Fix GCC warning on Mac OS X

parent 784f34ad
......@@ -69,12 +69,13 @@ void* dlGetProcAddress (const GLubyte* name)
void* NSGLGetProcAddress (const GLubyte *name)
static void* image = NULL;
void* addr;
if (NULL == image)
image = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
if( !image ) return NULL;
void* addr = dlsym(image, (const char*)name);
addr = dlsym(image, (const char*)name);
if( addr ) return addr;
return dlGetProcAddress( name ); // try next for glx symbols
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