A mesh unbound

- Clear a mesh's set of bound vaos when it's uploaded
- Fixes visual glitches on instancing when removing instances
This commit is contained in:
Jozufozu 2024-02-20 10:46:00 -06:00
parent 068692b4b9
commit aa46f6ceb1

View file

@ -145,6 +145,8 @@ public class MeshPool {
baseVertex += mesh.vertexCount(); baseVertex += mesh.vertexCount();
mesh.firstIndex = firstIndices.getInt(mesh.mesh.indexSequence()); mesh.firstIndex = firstIndices.getInt(mesh.mesh.indexSequence());
mesh.boundTo.clear();
} }
vbo.upload(vertexBlock); vbo.upload(vertexBlock);