Skip to content

Commit

Permalink
Remove Useless GL11 calls (#196)
Browse files Browse the repository at this point in the history
* Remove Useless GL11 calls

Fixes compat with angelica.
  • Loading branch information
mitchej123 authored Mar 13, 2024
1 parent e095a60 commit 8ca3245
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;

import org.lwjgl.opengl.GL11;

import com.glodblock.github.common.block.BlockFluidBuffer;
import com.glodblock.github.common.tile.TileFluidBuffer;

Expand Down Expand Up @@ -38,8 +36,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 +56,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 8ca3245

Please sign in to comment.