commit | f7cb46a9721ace5ec6d1e51cdc4ce70348605701 | [log] [tgz] |
---|---|---|
author | Mathias Fröhlich <mathias.froehlich@web.de> | Fri Jun 17 08:09:04 2016 +0200 |
committer | Mathias Fröhlich <mathias.froehlich@web.de> | Sun Jul 31 10:05:45 2016 +0200 |
tree | 13c01a8136b8f49a7d76faa2b4cb339213c245ef | |
parent | f696b712d7b7c7b701667691bc044b42c1195a69 [diff] |
mesa: Unbind deleted vbo using _mesa_bind_vertex_buffer. When a vertex buffer object gets deleted, it is unbound at the VAO. To do this use _mesa_bind_vertex_buffer instead of plain unreferencing the buffer object. This keeps the VAOs internal state consistent. In this case it showed up with gl_vertex_array_object::VertexAttribBufferMask getting out of sync. Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de> Reviewed-by: Eric Anholt <eric@anholt.net>