Fix incorrect depth test state in debug graph rendering Fixes #9534 (#9539)

This commit is contained in:
Dennis C authored and GitHub committed 2023-06-09 14:48:09 -07:00
1 parent 76349744f7
commit a4570cb22f
1 file changed
+6 -1
@@ -654,7 +654,12 @@ public class ForgeGui extends Gui
}
@Override
protected void drawGameInformation(GuiGraphics guiGraphics) {}
protected void drawGameInformation(GuiGraphics guiGraphics)
{
// Replicate the depth test state "leak" caused by the text that is rendered here in vanilla
// being flushed when the graphs start drawing (PR #9539)
RenderSystem.disableDepthTest();
}
@Override
protected void drawSystemInformation(GuiGraphics guiGraphics) {}