From: Brian Paul Date: Thu, 30 Mar 2006 14:26:29 +0000 (+0000) Subject: fix bad call to FindLine() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec83f38e2e1c46278f047063fa20aa2147ea8714;p=mesa.git fix bad call to FindLine() --- diff --git a/progs/demos/arbfplight.c b/progs/demos/arbfplight.c index 6ad95d4d76d..d9c564fbe56 100644 --- a/progs/demos/arbfplight.c +++ b/progs/demos/arbfplight.c @@ -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);