From 470652935c73d93e39ed36fe15ade79a2057fef1 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 7 Aug 2015 17:04:27 +1000 Subject: [PATCH] glxewInit and wglewInit for non-MX mode. --- auto/src/glew_init_glx.c | 4 ++++ auto/src/glew_init_wgl.c | 4 ++++ auto/src/glxew_tail.h | 4 +--- auto/src/wglew_tail.h | 4 +--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/auto/src/glew_init_glx.c b/auto/src/glew_init_glx.c index d160249..b54cca3 100644 --- a/auto/src/glew_init_glx.c +++ b/auto/src/glew_init_glx.c @@ -12,7 +12,11 @@ GLboolean glxewGetExtension (const char* name) return _glewSearchExtension(name, start, end); } +#ifdef GLEW_MX GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST) +#else +GLenum glxewInit (GLXEW_CONTEXT_ARG_DEF_LIST) +#endif { int major, minor; const GLubyte* extStart; diff --git a/auto/src/glew_init_wgl.c b/auto/src/glew_init_wgl.c index 7e76099..cc731fe 100644 --- a/auto/src/glew_init_wgl.c +++ b/auto/src/glew_init_wgl.c @@ -20,7 +20,11 @@ GLboolean GLEWAPIENTRY wglewGetExtension (const char* name) return _glewSearchExtension(name, start, end); } +#ifdef GLEW_MX GLenum GLEWAPIENTRY wglewContextInit (WGLEW_CONTEXT_ARG_DEF_LIST) +#else +GLenum GLEWAPIENTRY wglewInit (WGLEW_CONTEXT_ARG_DEF_LIST) +#endif { GLboolean crippled; const GLubyte* extStart; diff --git a/auto/src/glxew_tail.h b/auto/src/glxew_tail.h index 2b8b03c..e086253 100644 --- a/auto/src/glxew_tail.h +++ b/auto/src/glxew_tail.h @@ -14,11 +14,9 @@ GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const GLXEWContext *ctx, #else /* GLEW_MX */ -GLEWAPI GLenum GLEWAPIENTRY glxewContextInit (); +GLEWAPI GLenum GLEWAPIENTRY glxewInit (); GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name); -#define glxewInit() glxewContextInit() - #define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) #define GLXEW_GET_FUN(x) x diff --git a/auto/src/wglew_tail.h b/auto/src/wglew_tail.h index 432d615..f48f36c 100644 --- a/auto/src/wglew_tail.h +++ b/auto/src/wglew_tail.h @@ -14,11 +14,9 @@ GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, #else /* GLEW_MX */ -GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (); +GLEWAPI GLenum GLEWAPIENTRY wglewInit (); GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name); -#define wglewInit() wglewContextInit() - #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) #define WGLEW_GET_FUN(x) x