Skip to content

Commit

Permalink
Fix line rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
TangyKiwi committed Jan 7, 2025
1 parent 09332ba commit 47c7ad5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static void drawLine2D(MatrixStack matrices, float x1, float y1, float x2
GL11.glEnable(GL11.GL_LINE_SMOOTH);
RenderSystem.setShader(ShaderProgramKeys.POSITION_COLOR);

BufferBuilder bufferBuilder = Tessellator.getInstance().begin(VertexFormat.DrawMode.LINES,
BufferBuilder bufferBuilder = Tessellator.getInstance().begin(VertexFormat.DrawMode.DEBUG_LINES,
VertexFormats.POSITION_COLOR);
bufferBuilder.vertex(matrix4f, x1, y1, 0).color(c);
bufferBuilder.vertex(matrix4f, x2, y2, 0).color(c);
Expand Down

0 comments on commit 47c7ad5

Please sign in to comment.