mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 07:00:20 +01:00
mesa: unmap the immediate mode VB before destroying it
Fixes failed assertion from fd.o bug 27713. The assertion was added with the new resource/transfer changes. This patch could apply to the 7.8 branch but it's not essential.
This commit is contained in:
parent
a59771fb53
commit
96b0807253
1 changed files with 4 additions and 1 deletions
|
|
@ -850,8 +850,11 @@ void vbo_exec_vtx_destroy( struct vbo_exec_context *exec )
|
|||
NULL);
|
||||
}
|
||||
|
||||
/* Free the vertex buffer:
|
||||
/* Free the vertex buffer. Unmap first if needed.
|
||||
*/
|
||||
if (_mesa_bufferobj_mapped(exec->vtx.bufferobj)) {
|
||||
ctx->Driver.UnmapBuffer(ctx, GL_ARRAY_BUFFER, exec->vtx.bufferobj);
|
||||
}
|
||||
_mesa_reference_buffer_object(ctx, &exec->vtx.bufferobj, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue