From d4a0a8401c257b28ae7ae880a64b0185db19d66b Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 7 Aug 2015 16:53:47 +1000 Subject: [PATCH] Refactoring glxewIsSupported and wglewIsSupported for backwards compatibility. --- auto/src/glew_str_glx.c | 2 +- auto/src/glew_str_wgl.c | 2 +- auto/src/glxew_tail.h | 3 +-- auto/src/wglew_tail.h | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/auto/src/glew_str_glx.c b/auto/src/glew_str_glx.c index 81827a6..e841475 100644 --- a/auto/src/glew_str_glx.c +++ b/auto/src/glew_str_glx.c @@ -9,7 +9,7 @@ #if defined(GLEW_MX) GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name) #else -GLboolean glxewContextIsSupported (const char* name) +GLboolean glxewIsSupported (const char* name) #endif { const GLubyte* pos = (const GLubyte*)name; diff --git a/auto/src/glew_str_wgl.c b/auto/src/glew_str_wgl.c index b4c1ca2..5463ef7 100644 --- a/auto/src/glew_str_wgl.c +++ b/auto/src/glew_str_wgl.c @@ -9,7 +9,7 @@ #if defined(GLEW_MX) GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name) #else -GLboolean GLEWAPIENTRY wglewContextIsSupported (const char* name) +GLboolean GLEWAPIENTRY wglewIsSupported (const char* name) #endif { const GLubyte* pos = (const GLubyte*)name; diff --git a/auto/src/glxew_tail.h b/auto/src/glxew_tail.h index 0b4518e..2b8b03c 100644 --- a/auto/src/glxew_tail.h +++ b/auto/src/glxew_tail.h @@ -15,10 +15,9 @@ GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const GLXEWContext *ctx, #else /* GLEW_MX */ GLEWAPI GLenum GLEWAPIENTRY glxewContextInit (); -GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const char *name); +GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name); #define glxewInit() glxewContextInit() -#define glxewIsSupported(x) glxewContextIsSupported(x) #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 7955925..432d615 100644 --- a/auto/src/wglew_tail.h +++ b/auto/src/wglew_tail.h @@ -15,10 +15,9 @@ GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, #else /* GLEW_MX */ GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (); -GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const char *name); +GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name); #define wglewInit() wglewContextInit() -#define wglewIsSupported(x) wglewContextIsSupported(x) #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) #define WGLEW_GET_FUN(x) x