Module: Mesa
Branch: master
Commit: 3377faffcdc7227bd27381894c87c7600547744f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3377faffcdc7227bd27381894c87c7600547744f

Author: Chris Wilson <ch...@chris-wilson.co.uk>
Date:   Tue Feb 22 11:18:25 2011 +0000

i965: Zero the offset into the vbo when uploading non-interleaved

Fixes regression from 559435d9152acc7162e4e60aae6591c7c6c8274b.

Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk>

---

 src/mesa/drivers/dri/i965/brw_draw_upload.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c 
b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index b15c05a..6ea877b 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -454,6 +454,7 @@ static void brw_prepare_vertices(struct brw_context *brw)
                              upload[i], &brw->vb.buffers[j],
                              upload[i]->element_size);
       upload[i]->buffer = j++;
+      upload[i]->offset = 0;
    }
 
    /* can we simply extend the current vb? */

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to