projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a24e50
)
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 19:05:20 +0000
(13:05 -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 d76c45f356069b3365dedda7908e460063f57bf1..625452ac09a03845a67d0d5d3f027e6eca3e1155 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_draw.c
+++ b/
src/mesa/vbo/vbo_exec_draw.c
@@
-398,7
+398,7
@@
vbo_exec_vtx_flush( struct vbo_exec_context *exec, GLboolean unmap )
vbo_exec_vtx_unmap( 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) /