mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
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:
parent
068692b4b9
commit
aa46f6ceb1
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue