aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/ChunkMesh.java')
-rw-r--r--src/main/java/makamys/neodymium/renderer/ChunkMesh.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
index de14867..f8ed840 100644
--- a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
+++ b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
@@ -229,6 +229,10 @@ public class ChunkMesh extends Mesh {
}
}
+ for(int i = 0; i < planeQuads.size(); i++) {
+ planeQuads.get(i).mergeReference = null;
+ }
+
// Pass 2: merge rows to create rectangles
// TODO optimize?
for(int i = 0; i < planeQuads.size(); i++) {