const correctness fix for glewContextIsSupported, glxewContextIsSupported wglewContextIsSupported

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@634 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
nigels 2010-12-08 18:46:40 +00:00
parent 1abca93f6a
commit 2642bccfca
6 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
#if defined(GLEW_MX) #if defined(GLEW_MX)
GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name) GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
#else #else
GLboolean glxewIsSupported (const char* name) GLboolean glxewIsSupported (const char* name)
#endif #endif

View File

@ -1,5 +1,5 @@
#ifdef GLEW_MX #ifdef GLEW_MX
GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name) GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name)
#else #else
GLboolean glewIsSupported (const char* name) GLboolean glewIsSupported (const char* name)
#endif #endif

View File

@ -7,7 +7,7 @@
#if defined(_WIN32) #if defined(_WIN32)
#if defined(GLEW_MX) #if defined(GLEW_MX)
GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name) GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
#else #else
GLboolean wglewIsSupported (const char* name) GLboolean wglewIsSupported (const char* name)
#endif #endif

View File

@ -18,7 +18,7 @@
typedef struct GLEWContextStruct GLEWContext; typedef struct GLEWContextStruct GLEWContext;
GLEWAPI GLenum glewContextInit (GLEWContext* ctx); GLEWAPI GLenum glewContextInit (GLEWContext* ctx);
GLEWAPI GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name); GLEWAPI GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name);
#define glewInit() glewContextInit(glewGetContext()) #define glewInit() glewContextInit(glewGetContext())
#define glewIsSupported(x) glewContextIsSupported(glewGetContext(), x) #define glewIsSupported(x) glewContextIsSupported(glewGetContext(), x)

View File

@ -4,7 +4,7 @@
typedef struct GLXEWContextStruct GLXEWContext; typedef struct GLXEWContextStruct GLXEWContext;
extern GLenum glxewContextInit (GLXEWContext* ctx); extern GLenum glxewContextInit (GLXEWContext* ctx);
extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name); extern GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name);
#define glxewInit() glxewContextInit(glxewGetContext()) #define glxewInit() glxewContextInit(glxewGetContext())
#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) #define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x)

View File

@ -4,7 +4,7 @@
typedef struct WGLEWContextStruct WGLEWContext; typedef struct WGLEWContextStruct WGLEWContext;
GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx); GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name); GLEWAPI GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name);
#define wglewInit() wglewContextInit(wglewGetContext()) #define wglewInit() wglewContextInit(wglewGetContext())
#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)