projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1f38ba
)
draw: add vertex buffer offset in draw_print_arrays()
author
Brian Paul
<brianp@vmware.com>
Thu, 29 Jul 2010 19:44:44 +0000
(13:44 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 29 Jul 2010 23:25:54 +0000
(17:25 -0600)
src/gallium/auxiliary/draw/draw_pt.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_pt.c
b/src/gallium/auxiliary/draw/draw_pt.c
index 92d4113b4c6116ff547a84e7a9a0e6eff3c82776..adef26a167889a35b36a62f63d0bcd7e207063d1 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pt.c
+++ b/
src/gallium/auxiliary/draw/draw_pt.c
@@
-259,6
+259,7
@@
draw_print_arrays(struct draw_context *draw, uint prim, int start, uint count)
for (j = 0; j < draw->pt.nr_vertex_elements; j++) {
uint buf = draw->pt.vertex_element[j].vertex_buffer_index;
ubyte *ptr = (ubyte *) draw->pt.user.vbuffer[buf];
+ ptr += draw->pt.vertex_buffer[buf].buffer_offset;
ptr += draw->pt.vertex_buffer[buf].stride * ii;
ptr += draw->pt.vertex_element[j].src_offset;