aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod/renderer/LODRenderer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer/LODRenderer.java')
-rw-r--r--src/main/java/makamys/lodmod/renderer/LODRenderer.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java
index 95273c4..c76ea64 100644
--- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java
+++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java
@@ -131,6 +131,7 @@ public class LODRenderer {
if(renderLOD) {
sort();
+ updateMeshes();
initIndexBuffers();
render(alpha);
}
@@ -142,6 +143,12 @@ public class LODRenderer {
private void sort() {
Entity player = Minecraft.getMinecraft().renderViewEntity;
sentMeshes[1].sort(new MeshDistanceComparator(player.posX, player.posY, player.posZ));
+ private void updateMeshes() {
+ for(List<Mesh> list : sentMeshes) {
+ for(Mesh mesh : list) {
+ mesh.update();
+ }
+ }
}
private void initIndexBuffers() {