From 2642bccfcad9019f5830a6c31de408cdd52c6aa3 Mon Sep 17 00:00:00 2001 From: nigels Date: Wed, 8 Dec 2010 18:46:40 +0000 Subject: [PATCH] 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 --- auto/src/glew_str_glx.c | 2 +- auto/src/glew_str_head.c | 2 +- auto/src/glew_str_wgl.c | 2 +- auto/src/glew_tail.h | 2 +- auto/src/glxew_tail.h | 2 +- auto/src/wglew_tail.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/auto/src/glew_str_glx.c b/auto/src/glew_str_glx.c index 7c31405..8aafd69 100644 --- a/auto/src/glew_str_glx.c +++ b/auto/src/glew_str_glx.c @@ -7,7 +7,7 @@ #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) #if defined(GLEW_MX) -GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name) +GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name) #else GLboolean glxewIsSupported (const char* name) #endif diff --git a/auto/src/glew_str_head.c b/auto/src/glew_str_head.c index 1f3ddf2..431f34c 100644 --- a/auto/src/glew_str_head.c +++ b/auto/src/glew_str_head.c @@ -1,5 +1,5 @@ #ifdef GLEW_MX -GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name) +GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name) #else GLboolean glewIsSupported (const char* name) #endif diff --git a/auto/src/glew_str_wgl.c b/auto/src/glew_str_wgl.c index 2398075..6414e45 100644 --- a/auto/src/glew_str_wgl.c +++ b/auto/src/glew_str_wgl.c @@ -7,7 +7,7 @@ #if defined(_WIN32) #if defined(GLEW_MX) -GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name) +GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name) #else GLboolean wglewIsSupported (const char* name) #endif diff --git a/auto/src/glew_tail.h b/auto/src/glew_tail.h index 647c4cf..89c5ffc 100644 --- a/auto/src/glew_tail.h +++ b/auto/src/glew_tail.h @@ -18,7 +18,7 @@ typedef struct GLEWContextStruct GLEWContext; 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 glewIsSupported(x) glewContextIsSupported(glewGetContext(), x) diff --git a/auto/src/glxew_tail.h b/auto/src/glxew_tail.h index 702eb94..a635c56 100644 --- a/auto/src/glxew_tail.h +++ b/auto/src/glxew_tail.h @@ -4,7 +4,7 @@ typedef struct GLXEWContextStruct GLXEWContext; 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 glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) diff --git a/auto/src/wglew_tail.h b/auto/src/wglew_tail.h index 7bb9bf8..d51b823 100644 --- a/auto/src/wglew_tail.h +++ b/auto/src/wglew_tail.h @@ -4,7 +4,7 @@ typedef struct WGLEWContextStruct WGLEWContext; 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 wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)