Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Remove GL11 Calls (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueWeabo committed Mar 4, 2024
1 parent f42bfc6 commit 847c80b
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

import org.apache.commons.lang3.tuple.Pair;
import org.jetbrains.annotations.NotNull;
import org.lwjgl.opengl.GL11;

import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable;
import com.gtnewhorizon.structurelib.structure.IStructureDefinition;
Expand Down Expand Up @@ -901,10 +900,6 @@ public boolean renderInWorld(IBlockAccess aWorld, int x, int y, int z, Block blo
double maxV = forceField.getMaxV();
double xBaseOffset = 3 * getExtendedFacing().getRelativeBackInWorld().offsetX;
double zBaseOffset = 3 * getExtendedFacing().getRelativeBackInWorld().offsetZ;
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glDisable(GL11.GL_ALPHA_TEST);
GL11.glEnable(GL11.GL_BLEND);
tes.setColorOpaque_F(1f, 1f, 1f);
tes.setBrightness(15728880);
//Center O: 0, 0 1 ------- 8
Expand All @@ -924,11 +919,6 @@ public boolean renderInWorld(IBlockAccess aWorld, int x, int y, int z, Block blo
renderForceField(x + xBaseOffset + 0.5, y, z + zBaseOffset + 0.5, 5, minU, maxU, minV, maxV);
renderForceField(x + xBaseOffset + 0.5, y, z + zBaseOffset + 0.5, 6, minU, maxU, minV, maxV);
renderForceField(x + xBaseOffset + 0.5, y, z + zBaseOffset + 0.5, 7, minU, maxU, minV, maxV);
GL11.glDisable(GL11.GL_BLEND);
GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glPopMatrix();

}
// Needs to be false to render the controller
return false;
Expand Down

0 comments on commit 847c80b

Please sign in to comment.