From 2bf5b39730c1061af8c8f41e44584a2875cf9271 Mon Sep 17 00:00:00 2001 From: ikits Date: Mon, 15 Sep 2003 17:01:44 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@125 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/src/glew_gl.c | 4 ++-- auto/src/glewinfo_pre.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/auto/src/glew_gl.c b/auto/src/glew_gl.c index 846b834..83a9a4e 100644 --- a/auto/src/glew_gl.c +++ b/auto/src/glew_gl.c @@ -36,7 +36,7 @@ GLboolean glewGetExtension (const GLubyte *name) { GLubyte *p, *end; GLuint len = _glewStrLen(name); - p = glGetString(GL_EXTENSIONS); + p = (GLubyte*)glGetString(GL_EXTENSIONS); if (0 == p) return GL_FALSE; end = p + _glewStrLen(p); while (p < end) @@ -52,7 +52,7 @@ GLboolean glewGetExtension (const GLubyte *name) static GLuint _glewInit () { - GLubyte* s; + const GLubyte* s; GLuint i; /* query opengl version */ s = glGetString(GL_VERSION); diff --git a/auto/src/glewinfo_pre.c b/auto/src/glewinfo_pre.c index eafdd04..1c38049 100644 --- a/auto/src/glewinfo_pre.c +++ b/auto/src/glewinfo_pre.c @@ -42,9 +42,9 @@ static void glewPrintExt (const GLubyte* name, GLboolean defined) { unsigned int i; fprintf(f, "\n%s:", name); - for (i=0; i<62-strlen(name); i++) fprintf(f, " "); + for (i=0; i<62-strlen((const char*)name); i++) fprintf(f, " "); fprintf(f, "%s\n", defined ? "OK" : "MISSING"); - for (i=0; i