aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-07 23:02:53 +0200
committermakamys <makamys@outlook.com>2022-06-07 23:02:53 +0200
commita91466fdc6280b12b26b0caf528c5170ec2a48f9 (patch)
treef66a3fe7f1740431ab55005592a476a2ce2fb528 /src
parent6c2599711f7dd1325570ba2a80c4384ed0aef1c0 (diff)
downloadNeodymium-a91466fdc6280b12b26b0caf528c5170ec2a48f9.tar.gz
Neodymium-a91466fdc6280b12b26b0caf528c5170ec2a48f9.tar.bz2
Neodymium-a91466fdc6280b12b26b0caf528c5170ec2a48f9.zip
Make mesh tracking better/worse
Diffstat (limited to 'src')
-rw-r--r--src/main/java/makamys/lodmod/renderer/ChunkMesh.java5
1 files changed, 5 insertions, 0 deletions
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<String> stringTable) {
if(!(flags.hasTexture && flags.hasColor && flags.hasBrightness && !flags.hasNormals)) {