summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-01-24 16:41:29 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-01-26 10:33:26 +0900
commit337ebdd8f987a76579498d84bdea76a3ee819fcf (patch)
treeb14aad815544ead26ab926d79b91a6d6624157d9 /src/mesa
parent027983f5850afea753381be454122166c6d56777 (diff)
gallium: Fix build on Windows.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/draw/draw_vertex_fetch.c4
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 23e8187899..1a9e38158d 100644
--- a/src/mesa/pipe/draw/draw_vertex_fetch.c
+++ b/src/mesa/pipe/draw/draw_vertex_fetch.c
@@ -135,9 +135,9 @@ void draw_update_vertex_fetch( struct draw_context *draw )
unsigned buf = draw->vertex_element[i].vertex_buffer_index;
unsigned format = draw->vertex_element[i].src_format;
- draw->vertex_fetch.src_ptr[i] = (const ubyte *) (draw->user.vbuffer[buf] +
+ draw->vertex_fetch.src_ptr[i] = (const ubyte *) draw->user.vbuffer[buf] +
draw->vertex_buffer[buf].buffer_offset +
- draw->vertex_element[i].src_offset );
+ draw->vertex_element[i].src_offset;
draw->vertex_fetch.pitch[i] = draw->vertex_buffer[buf].pitch;
draw->vertex_fetch.fetch[i] = get_fetch_func( format );