Fix wireframe rendering

This commit is contained in:
James Seibel
2024-01-21 22:00:21 -06:00
parent d7eb8d9416
commit 4cb2bb97a8
@@ -387,6 +387,19 @@ public class LodRenderer
drawLagSpikeCatcher.end("LodDraw");
//=================//
// debug rendering //
//=================//
if (Config.Client.Advanced.Debugging.DebugWireframe.enableRendering.get())
{
profiler.popPush("Debug wireframes");
// Note: this can be very slow if a lot of boxes are being rendered
DebugRenderer.INSTANCE.render(modelViewProjectionMatrix);
profiler.popPush("LOD cleanup");
}
//=============================//
// Apply to the MC FrameBuffer //
@@ -438,14 +451,6 @@ public class LodRenderer
this.shaderProgram.unbind();
if (renderingFirstPass && Config.Client.Advanced.Debugging.DebugWireframe.enableRendering.get())
{
profiler.popPush("Debug wireframes");
// Note: this can be very slow if a lot of boxes are being rendered
DebugRenderer.INSTANCE.render(modelViewProjectionMatrix);
profiler.popPush("LOD cleanup");
}
minecraftGlState.restore();
drawCleanup.end("LodDrawCleanup");