mirror of
https://github.com/cabaletta/baritone
synced 2025-02-17 20:47:10 +00:00
Fix render bug caused by color bug fix
This commit is contained in:
parent
26a2945696
commit
ef4cdfd646
@ -119,7 +119,7 @@ public class GuiClick extends GuiScreen {
|
|||||||
if (clickStart != null && !clickStart.equals(currentMouseOver)) {
|
if (clickStart != null && !clickStart.equals(currentMouseOver)) {
|
||||||
GlStateManager.enableBlend();
|
GlStateManager.enableBlend();
|
||||||
GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO);
|
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.glLineWidth(Baritone.settings().pathRenderLineWidthPixels.value);
|
||||||
GlStateManager.disableTexture2D();
|
GlStateManager.disableTexture2D();
|
||||||
GlStateManager.depthMask(false);
|
GlStateManager.depthMask(false);
|
||||||
|
@ -116,7 +116,7 @@ public interface IRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void drawAABB(AxisAlignedBB aabb) {
|
static void drawAABB(AxisAlignedBB aabb) {
|
||||||
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION);
|
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION_COLOR);
|
||||||
emitAABB(aabb);
|
emitAABB(aabb);
|
||||||
tessellator.draw();
|
tessellator.draw();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user