mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix incorrect OpenGL function init in Linux
This commit is contained in:
parent
d6ad676436
commit
4a10c0a7fa
|
@ -31,7 +31,7 @@ typedef struct __GLXFBConfigRec *GLXFBConfig;
|
||||||
#define GLX_GLXEXT_PROTOTYPES
|
#define GLX_GLXEXT_PROTOTYPES
|
||||||
#include <GL/glxext.h>
|
#include <GL/glxext.h>
|
||||||
#define glGetProcAddress glXGetProcAddress
|
#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)
|
#elif defined(OS_MAC_OS_X)
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
@ -60,7 +60,7 @@ static void* IOSGLGetProcAddress (const char *name)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//GL Fucntions
|
//GL Functions
|
||||||
PFNGLBLENDFUNCPROC ptrBlendFunc;
|
PFNGLBLENDFUNCPROC ptrBlendFunc;
|
||||||
PFNGLPIXELSTOREIPROC ptrPixelStorei;
|
PFNGLPIXELSTOREIPROC ptrPixelStorei;
|
||||||
PFNGLCLEARCOLORPROC ptrClearColor;
|
PFNGLCLEARCOLORPROC ptrClearColor;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user