summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2007-02-23 01:43:13 +0100
committerRoland Scheidegger <sroland@tungstengraphics.com>2007-02-23 01:45:19 +0100
commit5e66843733c8123e73cadc1bc5c6111d64abaf25 (patch)
treeb39916793ee4b747b4f560f949fe75fa389953dc /src/mesa/drivers/dri/r200
parent4a1d7d6641ab9e66edce9d98456b978fe90a0617 (diff)
downloadexternal_mesa3d-5e66843733c8123e73cadc1bc5c6111d64abaf25.zip
external_mesa3d-5e66843733c8123e73cadc1bc5c6111d64abaf25.tar.gz
external_mesa3d-5e66843733c8123e73cadc1bc5c6111d64abaf25.tar.bz2
r200 fix broken (by new input handling) fogcoord
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_maos_arrays.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_maos_arrays.c b/src/mesa/drivers/dri/r200/r200_maos_arrays.c
index 6a6c30a..3162b50 100644
--- a/src/mesa/drivers/dri/r200/r200_maos_arrays.c
+++ b/src/mesa/drivers/dri/r200/r200_maos_arrays.c
@@ -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);