r300: Corrected position bug with position invariant option. Bug #11594.
authorOliver McFadden <z3ro.geek@gmail.com>
Mon, 16 Jul 2007 11:34:40 +0000 (11:34 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Mon, 16 Jul 2007 11:34:40 +0000 (11:34 +0000)
src/mesa/drivers/dri/r300/r300_vertprog.c

index b73d215b5880fd66aabd902979e517de54ad415b..7d8ac4c8c1302a81f5a7233b263ce73410206ceb 100644 (file)
@@ -1349,6 +1349,7 @@ void r300SelectVertexShader(r300ContextPtr r300)
        if (vpc->mesa_program.IsPositionInvariant) {
                /* we wan't position don't we ? */
                wanted_key.InputsRead |= (1 << VERT_ATTRIB_POS);
+               wanted_key.OutputsWritten |= (1 << VERT_RESULT_HPOS);
        }
 
        for (vp = vpc->progs; vp; vp = vp->next)