1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix incorrect OpenGL function init in MacOS

This commit is contained in:
fzurita 2019-09-30 10:20:58 -04:00 committed by Sergey Lipskiy
parent dd7fe47000
commit 3c875ef3a6

View File

@ -45,7 +45,7 @@ static void* AppleGLGetProcAddress (const char *name)
return (image ? dlsym(image, name) : NULL);
}
#define glGetProcAddress AppleGLGetProcAddress
#define GL_GET_PROC_ADR(proc_type, proc_name) ptr##proc_name = (proc_type) glGetProcAddress(#proc_name)
#define GL_GET_PROC_ADR(proc_type, proc_name) ptr##proc_name = (proc_type) glGetProcAddress("gl"#proc_name)
#elif defined(OS_IOS)
#include <dlfcn.h>