r200 fix broken (by new input handling) fogcoord
authorRoland Scheidegger <sroland@tungstengraphics.com>
Fri, 23 Feb 2007 00:43:13 +0000 (01:43 +0100)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Fri, 23 Feb 2007 00:45:19 +0000 (01:45 +0100)
src/mesa/drivers/dri/r200/r200_maos_arrays.c

index 6a6c30a2b0d238dc344ff55acddc66d8cdfd42e2..3162b508c234b19c13d7fe39fe7b2d0c25b6ec61 100644 (file)
@@ -420,14 +420,14 @@ void r200EmitArrays( GLcontext *ctx, GLubyte *vimap_rev )
            if (!rmesa->tcl.vertex_data[i].buf) {
               if (ctx->VertexProgram._Enabled)
                  emit_vector( ctx,
-                        &(rmesa->tcl.vertex_data[attrib]),
+                        &(rmesa->tcl.vertex_data[i]),
                         (char *)VB->AttribPtr[attrib]->data,
                         1,
                         VB->AttribPtr[attrib]->stride,
                         count);
               else
                  emit_vecfog( ctx,
-                        &(rmesa->tcl.vertex_data[attrib]),
+                        &(rmesa->tcl.vertex_data[i]),
                         (char *)VB->AttribPtr[attrib]->data,
                         VB->AttribPtr[attrib]->stride,
                         count);