fix using VERT_ATTRIB_WEIGHT instead of VERT_BIT_WEIGHT when assigning vp inputs.
authorRoland Scheidegger <rscheidegger@gmx.ch>
Sun, 5 Nov 2006 22:21:11 +0000 (22:21 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Sun, 5 Nov 2006 22:21:11 +0000 (22:21 +0000)
src/mesa/drivers/dri/r200/r200_vertprog.c

index acea0dba9982d6aeae8f40634f608348a49e7e1a..b5afe51d82468b37ca82a07b34a14e4555f0f04c 100644 (file)
@@ -501,7 +501,7 @@ static GLboolean r200_translate_vertex_program(GLcontext *ctx, struct r200_verte
       free_inputs &= ~(1 << 0);
       array_count++;
    }
-   if (mesa_vp->Base.InputsRead & VERT_ATTRIB_WEIGHT) {
+   if (mesa_vp->Base.InputsRead & VERT_BIT_WEIGHT) {
    /* we don't actually handle that later. Then again, we don't have to... */
       vp->inputs[VERT_ATTRIB_WEIGHT] = 12;
       array_count++;