gallium: Fix build on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Thu, 24 Jan 2008 15:41:29 +0000 (16:41 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 26 Jan 2008 01:33:26 +0000 (10:33 +0900)
src/mesa/pipe/draw/draw_vertex_fetch.c

index 23e81878997dcb51fdc35b6722968757a7a8e3ea..1a9e38158d97d87f47f758218e79b6bd0a692ffc 100644 (file)
@@ -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 );