silly bug: it's PROGRAM_VARYING
authorZack Rusin <zack@tungstengraphics.com>
Thu, 12 Jun 2008 23:41:54 +0000 (19:41 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Thu, 12 Jun 2008 23:41:54 +0000 (19:41 -0400)
src/mesa/shader/programopt.c

index da4e3fcfcfc88a21a88e5c61b16d62935e256f12..f3511ba00ecdfb7735b9f7a459b733389c1e6023 100644 (file)
@@ -382,7 +382,7 @@ _mesa_remove_output_reads(struct gl_program *prog, enum register_file type)
    GLuint numVaryingReads = 0;
 
    assert(prog->Target == GL_VERTEX_PROGRAM_ARB);
-   assert(type == PROGRAM_UNIFORM || type == PROGRAM_OUTPUT);
+   assert(type == PROGRAM_VARYING || type == PROGRAM_OUTPUT);
 
    for (i = 0; i < VERT_RESULT_MAX; i++)
       outputMap[i] = -1;