mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-27 00:51:55 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@125 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
cb58541cd0
commit
2bf5b39730
@ -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);
|
||||
|
@ -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<strlen(name)+1; i++) fprintf(f, "-");
|
||||
for (i=0; i<strlen((const char*)name)+1; i++) fprintf(f, "-");
|
||||
fprintf(f, "\n");
|
||||
fflush(f);
|
||||
}
|
||||
@ -53,7 +53,7 @@ static void glewInfoFunc (const GLubyte* name, GLboolean undefined)
|
||||
{
|
||||
unsigned int i;
|
||||
fprintf(f, " %s:", name);
|
||||
for (i=0; i<60-strlen(name); i++) fprintf(f, " ");
|
||||
for (i=0; i<60-strlen((const char*)name); i++) fprintf(f, " ");
|
||||
fprintf(f, "%s\n", undefined ? "MISSING" : "OK");
|
||||
fflush(f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user