fix bad call to FindLine()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 30 Mar 2006 14:26:29 +0000 (14:26 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 30 Mar 2006 14:26:29 +0000 (14:26 +0000)
progs/demos/arbfplight.c

index 6ad95d4d76d7a020fbc6624960c334e9658b72e3..d9c564fbe5611a312fd6d0a59e237a991b6ae55f 100644 (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);