aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-03-10 23:06:05 +0900
committersyeyoung <cyong06@naver.com>2021-03-10 23:06:05 +0900
commit92ce9024b73df31f3c88ad23a7443dec2578469c (patch)
treedd7f6c928c79e2847a34ccb47820a037d244e361 /src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
parenta7030786cc5f3b756f8b538f8f071cd7d5c14e77 (diff)
downloadSkyblock-Dungeons-Guide-92ce9024b73df31f3c88ad23a7443dec2578469c.tar.gz
Skyblock-Dungeons-Guide-92ce9024b73df31f3c88ad23a7443dec2578469c.tar.bz2
Skyblock-Dungeons-Guide-92ce9024b73df31f3c88ad23a7443dec2578469c.zip
finally fix gui flashing issue.
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
index cae3dd3a..a1a8fb7a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
@@ -42,10 +42,8 @@ public abstract class GuiFeature extends AbstractFeature implements ScreenRender
@Override
public void drawScreen(float partialTicks) {
if (!isEnabled()) return;
+ GlStateManager.pushAttrib();
GlStateManager.pushMatrix();
- GlStateManager.color(1,1,1,1);
- GlStateManager.disableFog();GL11.glDisable(GL11.GL_FOG);
- GlStateManager.disableLighting();
ScaledResolution scaledResolution = new ScaledResolution(Minecraft.getMinecraft());
Rectangle featureRect = this.featureRect.getRectangle(scaledResolution);
clip(scaledResolution, featureRect.x, featureRect.y, featureRect.width, featureRect.height);
@@ -56,6 +54,9 @@ public abstract class GuiFeature extends AbstractFeature implements ScreenRender
GL11.glDisable(GL11.GL_SCISSOR_TEST);
GlStateManager.popMatrix();
+ GlStateManager.popAttrib();
+
+ GlStateManager.enableBlend();
}