projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f785b35
)
vbo: fix divide by zero exception
author
Brian Paul
<brianp@vmware.com>
Mon, 24 Aug 2009 18:43:57 +0000
(12:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 24 Aug 2009 18:44:00 +0000
(12:44 -0600)
Fixes bug 23489.
src/mesa/vbo/vbo_exec_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_draw.c
b/src/mesa/vbo/vbo_exec_draw.c
index c53a4eee00cb65c3420055d77d6a9976afe03eba..98177a41750dd8746e13a288920971c3597b19c7 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_draw.c
+++ b/
src/mesa/vbo/vbo_exec_draw.c
@@
-383,7
+383,7
@@
void vbo_exec_vtx_flush( struct vbo_exec_context *exec,
}
- if (unmap
)
+ if (unmap
|| exec->vtx.vertex_size == 0)
exec->vtx.max_vert = 0;
else
exec->vtx.max_vert = ((VBO_VERT_BUFFER_SIZE - exec->vtx.buffer_used) /