From 24106087ff9ead81f3b623c030609ed3406203ae Mon Sep 17 00:00:00 2001 From: Richard Gonlag Date: Tue, 4 Aug 2020 01:15:41 +0200 Subject: [PATCH] Fix light overlay glitch --- .../moreoverlays/lightoverlay/LightOverlayRenderer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/at/feldim2425/moreoverlays/lightoverlay/LightOverlayRenderer.java b/src/main/java/at/feldim2425/moreoverlays/lightoverlay/LightOverlayRenderer.java index 572da76..9751bab 100644 --- a/src/main/java/at/feldim2425/moreoverlays/lightoverlay/LightOverlayRenderer.java +++ b/src/main/java/at/feldim2425/moreoverlays/lightoverlay/LightOverlayRenderer.java @@ -30,6 +30,7 @@ public void renderOverlays(ILightScanner scanner) { Minecraft.getInstance().getTextureManager().bindTexture(BLANK_TEX); GlStateManager.pushMatrix(); GL11.glLineWidth((float)(double)Config.render_spawnLineWidth.get()); + GL11.glEnable(GL11.GL_DEPTH_TEST); final Vector3d view = render.info.getProjectedView(); GlStateManager.rotatef(player.getPitch(0), 1, 0, 0); // Fixes camera rotation.