mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 16:53:49 +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;
|
GLubyte *p, *end;
|
||||||
GLuint len = _glewStrLen(name);
|
GLuint len = _glewStrLen(name);
|
||||||
p = glGetString(GL_EXTENSIONS);
|
p = (GLubyte*)glGetString(GL_EXTENSIONS);
|
||||||
if (0 == p) return GL_FALSE;
|
if (0 == p) return GL_FALSE;
|
||||||
end = p + _glewStrLen(p);
|
end = p + _glewStrLen(p);
|
||||||
while (p < end)
|
while (p < end)
|
||||||
@ -52,7 +52,7 @@ GLboolean glewGetExtension (const GLubyte *name)
|
|||||||
|
|
||||||
static GLuint _glewInit ()
|
static GLuint _glewInit ()
|
||||||
{
|
{
|
||||||
GLubyte* s;
|
const GLubyte* s;
|
||||||
GLuint i;
|
GLuint i;
|
||||||
/* query opengl version */
|
/* query opengl version */
|
||||||
s = glGetString(GL_VERSION);
|
s = glGetString(GL_VERSION);
|
||||||
|
@ -42,9 +42,9 @@ static void glewPrintExt (const GLubyte* name, GLboolean defined)
|
|||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
fprintf(f, "\n%s:", name);
|
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");
|
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");
|
fprintf(f, "\n");
|
||||||
fflush(f);
|
fflush(f);
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ static void glewInfoFunc (const GLubyte* name, GLboolean undefined)
|
|||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
fprintf(f, " %s:", name);
|
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");
|
fprintf(f, "%s\n", undefined ? "MISSING" : "OK");
|
||||||
fflush(f);
|
fflush(f);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user