From 3c875ef3a6d3f1d398c81810153c031275e7b1d3 Mon Sep 17 00:00:00 2001 From: fzurita Date: Mon, 30 Sep 2019 10:20:58 -0400 Subject: [PATCH] Fix incorrect OpenGL function init in MacOS --- src/Graphics/OpenGLContext/GLFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/OpenGLContext/GLFunctions.cpp b/src/Graphics/OpenGLContext/GLFunctions.cpp index 7e098178..c5f99c7d 100644 --- a/src/Graphics/OpenGLContext/GLFunctions.cpp +++ b/src/Graphics/OpenGLContext/GLFunctions.cpp @@ -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