mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
vbo: fix divide by zero exception
Fixes bug 23489.
This commit is contained in:
parent
f785b35b47
commit
b9b04872d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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) /
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue