Fix render bug caused by color bug fix

This commit is contained in:
ZacSharp 2023-06-16 19:22:37 +02:00
parent 26a2945696
commit ef4cdfd646
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ public class GuiClick extends GuiScreen {
if (clickStart != null && !clickStart.equals(currentMouseOver)) {
GlStateManager.enableBlend();
GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO);
GlStateManager.color(Color.RED.getColorComponents(null)[0], Color.RED.getColorComponents(null)[1], Color.RED.getColorComponents(null)[2], 0.4F);
IRenderer.glColor(Color.RED, 0.4F);
GlStateManager.glLineWidth(Baritone.settings().pathRenderLineWidthPixels.value);
GlStateManager.disableTexture2D();
GlStateManager.depthMask(false);

View File

@ -116,7 +116,7 @@ public interface IRenderer {
}
static void drawAABB(AxisAlignedBB aabb) {
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION);
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION_COLOR);
emitAABB(aabb);
tessellator.draw();
}