Explorar el Código

vbo: fix divide by zero exception

Fixes bug 23489.
tags/mesa_7_6_rc1
Brian Paul hace 16 años
padre
commit
93aa0fd81c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/mesa/vbo/vbo_exec_draw.c

+ 1
- 1
src/mesa/vbo/vbo_exec_draw.c Ver fichero

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

Cargando…
Cancelar
Guardar