fix printf warnings
This commit is contained in:
parent
e8df62b5a7
commit
29b2ced167
|
@ -151,7 +151,7 @@ static void Init( void )
|
|||
|
||||
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
|
||||
printf("errorpos: %d\n", errorpos);
|
||||
printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
}
|
||||
|
||||
glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, fprognum);
|
||||
|
@ -165,7 +165,7 @@ static void Init( void )
|
|||
|
||||
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
|
||||
printf("errorpos: %d\n", errorpos);
|
||||
printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
}
|
||||
|
||||
glEnable(GL_VERTEX_PROGRAM_ARB);
|
||||
|
|
|
@ -70,7 +70,7 @@ static void load_program(const char *prog, GLuint prognum)
|
|||
{
|
||||
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
|
||||
printf("errorpos: %d\n", errorpos);
|
||||
printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
|
||||
for (a=-10; a<10; a++)
|
||||
{
|
||||
|
|
|
@ -66,7 +66,7 @@ static void load_program(const char *prog, GLuint prognum)
|
|||
{
|
||||
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
|
||||
printf("errorpos: %d\n", errorpos);
|
||||
printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
|
||||
for (a=-10; a<10; a++)
|
||||
{
|
||||
|
|
|
@ -107,7 +107,7 @@ static void Init( void )
|
|||
|
||||
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
|
||||
printf("errorpos: %d\n", errorpos);
|
||||
printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ static void Init( void )
|
|||
|
||||
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
|
||||
printf("errorpos: %d\n", errorpos);
|
||||
printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
|
||||
}
|
||||
|
||||
/* Light position */
|
||||
|
|
Loading…
Reference in New Issue