fix bad call to FindLine()

This commit is contained in:
Brian Paul 2006-03-30 14:26:29 +00:00
parent 197d725601
commit ec83f38e2e
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ static void Init( void )
(const GLubyte *) vertProgramText);
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorPos);
if (glGetError() != GL_NO_ERROR || errorPos != -1) {
int l = FindLine(fragProgramText, errorPos);
int l = FindLine(vertProgramText, errorPos);
printf("Vertex Program Error (pos=%d line=%d): %s\n", errorPos, l,
(char *) glGetString(GL_PROGRAM_ERROR_STRING_ARB));
exit(0);