projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c477ab
)
u_vbuf_mgr: fixed vbo max_index calculation
author
pepp
<pelloux@gmail.com>
Mon, 11 Apr 2011 15:16:45 +0000
(17:16 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 11 Apr 2011 15:35:28 +0000
(17:35 +0200)
Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/gallium/auxiliary/util/u_vbuf_mgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_vbuf_mgr.c
b/src/gallium/auxiliary/util/u_vbuf_mgr.c
index b2eaff851ac005772b738c5bf7cf8182231322ce..dea2928f9501f7bc55492ee6c02bc0f567b1e407 100644
(file)
--- 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++) {