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 Linux

This commit is contained in:
fzurita 2019-09-29 17:42:36 -04:00
parent d6ad676436
commit 4a10c0a7fa

View File

@ -31,7 +31,7 @@ typedef struct __GLXFBConfigRec *GLXFBConfig;
#define GLX_GLXEXT_PROTOTYPES
#include <GL/glxext.h>
#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 <dlfcn.h>
@ -60,7 +60,7 @@ static void* IOSGLGetProcAddress (const char *name)
#endif
//GL Fucntions
//GL Functions
PFNGLBLENDFUNCPROC ptrBlendFunc;
PFNGLPIXELSTOREIPROC ptrPixelStorei;
PFNGLCLEARCOLORPROC ptrClearColor;