From 4a10c0a7fa0b5beb11ae35645d41eaf2602c6b07 Mon Sep 17 00:00:00 2001 From: fzurita Date: Sun, 29 Sep 2019 17:42:36 -0400 Subject: [PATCH] Fix incorrect OpenGL function init in Linux --- src/Graphics/OpenGLContext/GLFunctions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Graphics/OpenGLContext/GLFunctions.cpp b/src/Graphics/OpenGLContext/GLFunctions.cpp index 056d483c..7e098178 100644 --- a/src/Graphics/OpenGLContext/GLFunctions.cpp +++ b/src/Graphics/OpenGLContext/GLFunctions.cpp @@ -31,7 +31,7 @@ typedef struct __GLXFBConfigRec *GLXFBConfig; #define GLX_GLXEXT_PROTOTYPES #include #define glGetProcAddress glXGetProcAddress -#define GL_GET_PROC_ADR(proc_type, proc_name) ptr##proc_name = (proc_type) glGetProcAddress((const GLubyte*)#proc_name) +#define GL_GET_PROC_ADR(proc_type, proc_name) ptr##proc_name = (proc_type) glGetProcAddress((const GLubyte*)"gl"#proc_name) #elif defined(OS_MAC_OS_X) #include @@ -60,7 +60,7 @@ static void* IOSGLGetProcAddress (const char *name) #endif -//GL Fucntions +//GL Functions PFNGLBLENDFUNCPROC ptrBlendFunc; PFNGLPIXELSTOREIPROC ptrPixelStorei; PFNGLCLEARCOLORPROC ptrClearColor;