diff options
author | pepp <[email protected]> | 2011-04-11 17:16:45 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-04-11 17:35:28 +0200 |
commit | 45920d2ecb38b14fdda5253fecce996570c22863 (patch) | |
tree | 1038f41a01265b4960f54e545da71bc837e792bd /src | |
parent | 5c477ab2de9fb2ad3b0e4ae53f5930f1288cb90e (diff) |
u_vbuf_mgr: fixed vbo max_index calculation
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_vbuf_mgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c index b2eaff851ac..dea2928f950 100644 --- a/src/gallium/auxiliary/util/u_vbuf_mgr.c +++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c @@ -499,7 +499,7 @@ void u_vbuf_mgr_set_vertex_buffers(struct u_vbuf_mgr *mgrb, /* Update the maximum index. */ mgr->b.max_index = MIN2(mgr->b.max_index, - (vb->buffer->width0 - vb->buffer_offset) / vb->stride); + (vb->buffer->width0 - vb->buffer_offset) / vb->stride - 1); } for (; i < mgr->b.nr_real_vertex_buffers; i++) { |