From c8e15f201c3c9a74524f3adc4dd9a89d96fbefb8 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sun, 16 Oct 2022 09:50:17 +0100 Subject: [PATCH] Correctly bind VBOs before drawing them Caused by 4228011b848e99de64eb79c26598d81490c32bad. While correct on 1.18, this isn't correct on 1.19 - I clearly messed up the merge here. Fixes #1183, possibly #1184 - haven't been able to reproduce. --- .../client/render/TileEntityMonitorRenderer.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java b/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java index 6389247e4..21c7434c6 100644 --- a/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java +++ b/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java @@ -8,10 +8,7 @@ package dan200.computercraft.client.render; import com.mojang.blaze3d.platform.GlStateManager; import com.mojang.blaze3d.platform.MemoryTracker; import com.mojang.blaze3d.systems.RenderSystem; -import com.mojang.blaze3d.vertex.BufferBuilder; -import com.mojang.blaze3d.vertex.PoseStack; -import com.mojang.blaze3d.vertex.Tesselator; -import com.mojang.blaze3d.vertex.VertexConsumer; +import com.mojang.blaze3d.vertex.*; import com.mojang.math.Matrix3f; import com.mojang.math.Matrix4f; import com.mojang.math.Vector3f; @@ -214,11 +211,14 @@ public class TileEntityMonitorRenderer implements BlockEntityRenderer