Skip to content

Commit

Permalink
Remove Useless GL11 calls
Browse files Browse the repository at this point in the history
Fixes compat with angelica.
  • Loading branch information
mitchej123 authored Mar 13, 2024
1 parent e095a60 commit 834ccd8
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ private void renderFluid(TileFluidBuffer tileEntity, double x, double y, double
if (tileEntity != null && tileEntity.getFluidStack() != null) {
Fluid storedFluid = tileEntity.getFluidStack().getFluid();
if (storedFluid != null) {
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
Block id = Block.getBlockById(FluidRegistry.WATER.getID());
IIcon fluidIcon = storedFluid.getIcon();
if (fluidIcon == null) fluidIcon = FluidRegistry.LAVA.getIcon();
Expand All @@ -60,7 +58,6 @@ private void renderFluid(TileFluidBuffer tileEntity, double x, double y, double
renderer.renderFaceXNeg(id, x, y, z, fluidIcon);
tessellator.setNormal(1.0F, 0.0F, 0.0F);
renderer.renderFaceXPos(id, x, y, z, fluidIcon);
GL11.glDisable(GL11.GL_BLEND);
}
}
}
Expand Down

0 comments on commit 834ccd8

Please sign in to comment.