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 483eb199fa
commit dd23e1d4f8

View File

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