vbo: fix divide by zero exception

Fixes bug 23489.
This commit is contained in:
Brian Paul 2009-08-24 12:43:57 -06:00
parent f785b35b47
commit b9b04872d5

View file

@ -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) /