Fix #104347: Loop Cut Tool becomes impressive with GPU Subdivision #104873

Merged
Germano Cavalcante merged 1 commits from mano-wii/blender:VAO_state_safe into main 2023-02-17 14:30:40 +01:00

1 Commits

Author SHA1 Message Date
08cfa89c0b Fix #104347: Loop Cut Tool becomes impressive with GPU Subdivision
When updating a mesh, GPU Subdivision code makes calls to
`GPU_indexbuf_bind_as_ssbo()`.

The problem occurs when the index buffer of the current VAO is changed
due to `GPU_indexbuf_bind_as_ssbo()` calls.

The solution is to unbind the VAO (by calling `glBindVertexArray(0)`)
before creating the index buffer IBO.
2023-02-17 09:56:11 -03:00