From 1a46d20ac3a0ec5b98e07dc4fac21a74bd7af874 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 27 Nov 2021 23:36:23 +0900 Subject: - Fix typo disableDepth -> enableDepth --- .../java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java index 046a22c2..282dcf76 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/RenderUtils.java @@ -806,7 +806,7 @@ public class RenderUtils { if (!depth) { - GlStateManager.disableDepth(); + GlStateManager.enableDepth(); GlStateManager.depthMask(true); } GlStateManager.enableTexture2D(); @@ -885,7 +885,7 @@ public class RenderUtils { if (!depth) { - GlStateManager.disableDepth(); + GlStateManager.enableDepth(); GlStateManager.depthMask(true); } GlStateManager.enableTexture2D(); @@ -959,7 +959,7 @@ public class RenderUtils { if (!depth) { - GlStateManager.disableDepth(); + GlStateManager.enableDepth(); GlStateManager.depthMask(true); } GlStateManager.enableTexture2D(); @@ -1046,7 +1046,7 @@ public class RenderUtils { if (!depth) { - GlStateManager.disableDepth(); + GlStateManager.enableDepth(); GlStateManager.depthMask(true); } GlStateManager.enableTexture2D(); @@ -1123,6 +1123,7 @@ public class RenderUtils { GL11.glVertex3d(x,y,0); GL11.glVertex3d(0,0,z); + GlStateManager.disableDepth(); GL11.glVertex3d(0,0,0); GL11.glVertex3d(x,0,0); GL11.glVertex3d(x,0,z); @@ -1133,7 +1134,7 @@ public class RenderUtils { if (!depth) { - GlStateManager.disableDepth(); + GlStateManager.enableDepth(); GlStateManager.depthMask(true); } GlStateManager.enableTexture2D(); @@ -1219,7 +1220,7 @@ public class RenderUtils { if (!depth) { - GlStateManager.disableDepth(); + GlStateManager.enableDepth(); GlStateManager.depthMask(true); } GlStateManager.enableTexture2D(); @@ -1313,7 +1314,7 @@ public class RenderUtils { if (!depth) { - GlStateManager.disableDepth(); + GlStateManager.enableDepth(); GlStateManager.depthMask(true); } GlStateManager.enableTexture2D(); -- cgit