Remove glPushAttrib/glPopAttrib usage

This commit is contained in:
Brady 2023-07-26 19:52:25 -05:00
parent 8de239f468
commit 90f2b39fba
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 2 additions and 6 deletions

View File

@ -57,6 +57,7 @@ public interface IRenderer {
GlStateManager.glLineWidth(lineWidth);
GlStateManager.disableTexture2D();
GlStateManager.depthMask(false);
GlStateManager.disableLighting();
if (ignoreDepth) {
GlStateManager.disableDepth();
@ -77,6 +78,7 @@ public interface IRenderer {
GlStateManager.depthMask(true);
GlStateManager.enableTexture2D();
GlStateManager.disableBlend();
GlStateManager.enableLighting();
}
static void emitAABB(AxisAlignedBB aabb) {

View File

@ -41,8 +41,6 @@ import java.util.Collection;
import java.util.Collections;
import java.util.List;
import static org.lwjgl.opengl.GL11.*;
/**
* @author Brady
* @since 8/9/2018
@ -239,8 +237,6 @@ public final class PathRenderer implements IRenderer {
GoalXZ goalPos = (GoalXZ) goal;
if (settings.renderGoalXZBeacon.value) {
glPushAttrib(GL_LIGHTING_BIT);
textureManager.bindTexture(TileEntityBeaconRenderer.TEXTURE_BEACON_BEAM);
if (settings.renderGoalIgnoreDepth.value) {
@ -262,8 +258,6 @@ public final class PathRenderer implements IRenderer {
if (settings.renderGoalIgnoreDepth.value) {
GlStateManager.enableDepth();
}
glPopAttrib();
return;
}