From a91466fdc6280b12b26b0caf528c5170ec2a48f9 Mon Sep 17 00:00:00 2001 From: makamys Date: Tue, 7 Jun 2022 23:02:53 +0200 Subject: Make mesh tracking better/worse --- src/main/java/makamys/lodmod/renderer/ChunkMesh.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/makamys/lodmod') diff --git a/src/main/java/makamys/lodmod/renderer/ChunkMesh.java b/src/main/java/makamys/lodmod/renderer/ChunkMesh.java index 09a8cd5..ab8ce1f 100644 --- a/src/main/java/makamys/lodmod/renderer/ChunkMesh.java +++ b/src/main/java/makamys/lodmod/renderer/ChunkMesh.java @@ -251,6 +251,11 @@ public class ChunkMesh extends Mesh { } instances--; } + + @Override + public void destroyBuffer() { + destroy(); + } private ByteBuffer createBuffer(byte[] data, List stringTable) { if(!(flags.hasTexture && flags.hasColor && flags.hasBrightness && !flags.hasNormals)) { -- cgit