aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-08-05 12:35:15 +0900
committersyeyoung <cyong06@naver.com>2021-08-05 12:46:35 +0900
commitf10046f075efd7e17336a7b4629d446283b5c953 (patch)
tree09949c1dbf309c66fbfbde6765b0da4a8ebbdf7b /src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java
parent468463272411cec70554aed1c96a60beea38f14a (diff)
downloadSkyblock-Dungeons-Guide-f10046f075efd7e17336a7b4629d446283b5c953.tar.gz
Skyblock-Dungeons-Guide-f10046f075efd7e17336a7b4629d446283b5c953.tar.bz2
Skyblock-Dungeons-Guide-f10046f075efd7e17336a7b4629d446283b5c953.zip
- Remove GlStateManager.pushAttrib, which causes .... a lot of problems
= Black screen hopefully fixed? - Mechanic Browser Rewrite
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java
index 7ea8cf51..dd8331a7 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/ActionTreeDisplayPane.java
@@ -77,7 +77,7 @@ public class ActionTreeDisplayPane extends MPanel {
Point pt = drawmPoints.get(actionTree);
GlStateManager.pushMatrix();
- GlStateManager.pushAttrib();
+
GlStateManager.enableBlend();
GlStateManager.disableDepth();
GlStateManager.disableTexture2D();
@@ -94,14 +94,14 @@ public class ActionTreeDisplayPane extends MPanel {
GlStateManager.enableDepth();
GlStateManager.disableBlend();
GlStateManager.popMatrix();
- GlStateManager.popAttrib();
+
return 0;
}
Dimension dim = renderAction(actionTree.getCurrent(), x, y, fr);
if (drawLineFrom != null) {
GlStateManager.pushMatrix();
- GlStateManager.pushAttrib();
+
GlStateManager.enableBlend();
GlStateManager.disableDepth();
@@ -119,7 +119,7 @@ public class ActionTreeDisplayPane extends MPanel {
GlStateManager.enableDepth();
GlStateManager.disableBlend();
GlStateManager.popMatrix();
- GlStateManager.popAttrib();
+
}
Point pt = new Point(x + dim.width / 2, y + dim.height);
@@ -139,7 +139,7 @@ public class ActionTreeDisplayPane extends MPanel {
Dimension dim = renderAction(action, x, y2, fr);
if (lastPt != null) {
GlStateManager.pushMatrix();
- GlStateManager.pushAttrib();
+
GlStateManager.enableBlend();
GlStateManager.disableDepth();
@@ -157,7 +157,7 @@ public class ActionTreeDisplayPane extends MPanel {
GlStateManager.enableDepth();
GlStateManager.disableBlend();
GlStateManager.popMatrix();
- GlStateManager.popAttrib();
+
}
lastPt = new Point(x + dim.width / 2, y2 + dim.height);