From 918f009e8a02fcfa1edbf0cda360429da6f62083 Mon Sep 17 00:00:00 2001 From: CDAGaming Date: Mon, 12 Oct 2020 12:52:05 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20a=20Rendering=20Conflict?= =?UTF-8?q?=20with=20some=20other=20Mods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In testing within Fabritone, it was found that these two lines (Which were previously used for an unknown optifine workaround) are no longer needed, and had no known side effects as of writing. This can be backported as needed, but details are unknown how far this can go down Future me PS: This PR is a superseed of my last one, erased during repo refactors, so now it lives on master branch. Testing recommended and can be up-ported/down-ported as you wish. --- src/main/java/baritone/utils/IRenderer.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/baritone/utils/IRenderer.java b/src/main/java/baritone/utils/IRenderer.java index 0078f227..e5a5ee90 100644 --- a/src/main/java/baritone/utils/IRenderer.java +++ b/src/main/java/baritone/utils/IRenderer.java @@ -45,7 +45,6 @@ public interface IRenderer { static void startLines(Color color, float alpha, float lineWidth, boolean ignoreDepth) { GlStateManager.enableBlend(); - GlStateManager.disableLighting(); GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO); glColor(color, alpha); GlStateManager.glLineWidth(lineWidth); @@ -68,7 +67,6 @@ public interface IRenderer { GlStateManager.depthMask(true); GlStateManager.enableTexture2D(); - GlStateManager.enableLighting(); GlStateManager.disableBlend(); }