diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-01-28 20:57:16 +0000 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-02-15 13:50:23 +1100 |
commit | 3c9e26e0fa6d97f50b74745ffad9215f68607fe3 (patch) | |
tree | 79e3fd0c8eef4fb76f5cefd71c5e5b5dbc1d0580 /src | |
parent | 0abef84995acd01d7155f4fc851c9c528a1cfa73 (diff) |
gallium: fix typos in hardwired fetch path
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/pipe/draw/draw_vertex_fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_fetch.c b/src/mesa/pipe/draw/draw_vertex_fetch.c index afdf1971d2..89e4c256a7 100644 --- a/src/mesa/pipe/draw/draw_vertex_fetch.c +++ b/src/mesa/pipe/draw/draw_vertex_fetch.c @@ -396,7 +396,7 @@ static void fetch_xyz_rgb_st( struct draw_context *draw, { const float *in = (const float *)(src[2] + elts[i] * pitch[2]); - float *out = &machine->Inputs[1].xyzw[0].f[i]; + float *out = &machine->Inputs[2].xyzw[0].f[i]; out[0] = in[0]; out[4] = in[1]; out[8] = 0.0f; @@ -500,7 +500,7 @@ void draw_update_vertex_fetch( struct draw_context *draw ) case 3: if (draw->vertex_element[0].src_format == PIPE_FORMAT_R32G32B32_FLOAT && draw->vertex_element[1].src_format == PIPE_FORMAT_R32G32B32_FLOAT && - draw->vertex_element[1].src_format == PIPE_FORMAT_R32G32_FLOAT) + draw->vertex_element[2].src_format == PIPE_FORMAT_R32G32_FLOAT) draw->vertex_fetch.fetch_func = fetch_xyz_rgb_st; break; default: |