mirror of https://github.com/cabaletta/baritone
Remove glPushAttrib/glPopAttrib usage
This commit is contained in:
parent
8de239f468
commit
90f2b39fba
|
@ -57,6 +57,7 @@ public interface IRenderer {
|
||||||
GlStateManager.glLineWidth(lineWidth);
|
GlStateManager.glLineWidth(lineWidth);
|
||||||
GlStateManager.disableTexture2D();
|
GlStateManager.disableTexture2D();
|
||||||
GlStateManager.depthMask(false);
|
GlStateManager.depthMask(false);
|
||||||
|
GlStateManager.disableLighting();
|
||||||
|
|
||||||
if (ignoreDepth) {
|
if (ignoreDepth) {
|
||||||
GlStateManager.disableDepth();
|
GlStateManager.disableDepth();
|
||||||
|
@ -77,6 +78,7 @@ public interface IRenderer {
|
||||||
GlStateManager.depthMask(true);
|
GlStateManager.depthMask(true);
|
||||||
GlStateManager.enableTexture2D();
|
GlStateManager.enableTexture2D();
|
||||||
GlStateManager.disableBlend();
|
GlStateManager.disableBlend();
|
||||||
|
GlStateManager.enableLighting();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void emitAABB(AxisAlignedBB aabb) {
|
static void emitAABB(AxisAlignedBB aabb) {
|
||||||
|
|
|
@ -41,8 +41,6 @@ import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static org.lwjgl.opengl.GL11.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Brady
|
* @author Brady
|
||||||
* @since 8/9/2018
|
* @since 8/9/2018
|
||||||
|
@ -239,8 +237,6 @@ public final class PathRenderer implements IRenderer {
|
||||||
GoalXZ goalPos = (GoalXZ) goal;
|
GoalXZ goalPos = (GoalXZ) goal;
|
||||||
|
|
||||||
if (settings.renderGoalXZBeacon.value) {
|
if (settings.renderGoalXZBeacon.value) {
|
||||||
glPushAttrib(GL_LIGHTING_BIT);
|
|
||||||
|
|
||||||
textureManager.bindTexture(TileEntityBeaconRenderer.TEXTURE_BEACON_BEAM);
|
textureManager.bindTexture(TileEntityBeaconRenderer.TEXTURE_BEACON_BEAM);
|
||||||
|
|
||||||
if (settings.renderGoalIgnoreDepth.value) {
|
if (settings.renderGoalIgnoreDepth.value) {
|
||||||
|
@ -262,8 +258,6 @@ public final class PathRenderer implements IRenderer {
|
||||||
if (settings.renderGoalIgnoreDepth.value) {
|
if (settings.renderGoalIgnoreDepth.value) {
|
||||||
GlStateManager.enableDepth();
|
GlStateManager.enableDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
glPopAttrib();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue