Skip to content

Commit

Permalink
Remove useless gl call
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Feb 27, 2021
1 parent 1fc8946 commit 2d5f29e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void onRenderWorld(RenderWorldLastEvent event) {
double y = buttonPos.getY() - viewerY;
double z = buttonPos.getZ() - viewerZ;
GlStateManager.disableCull();
RenderUtil.drawFilledBoundingBox(new AxisAlignedBB(x, y, z, x + 1, y + 1, z + 1), new Color(255, 0, 0, 180), 1f);
RenderUtil.drawFilledBoundingBox(new AxisAlignedBB(x, y, z, x + 1, y + 1, z + 1), new Color(255, 0, 0, 255), 0.7f);
GlStateManager.enableCull();
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ public void onRenderWorld(RenderWorldLastEvent event) {
double y = pos.getY() - viewerY;
double z = pos.getZ() - viewerZ;
GlStateManager.disableCull();
GlStateManager.disableBlend();
RenderUtil.drawFilledBoundingBox(new AxisAlignedBB(x, y, z, x + 1, y + 1, z + 1), new Color(255, 0, 0), 0.5f);
GlStateManager.enableBlend();
GlStateManager.enableCull();
}
}
Expand Down

0 comments on commit 2d5f29e

Please sign in to comment.