From c9fd2c686083c94212056e318d8adf46e20ab585 Mon Sep 17 00:00:00 2001 From: fayer3 Date: Sun, 7 Jul 2024 17:43:00 +0200 Subject: [PATCH] 1.19.2 fixes --- .../org/vivecraft/client_vr/render/helpers/RenderHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/vivecraft/client_vr/render/helpers/RenderHelper.java b/common/src/main/java/org/vivecraft/client_vr/render/helpers/RenderHelper.java index 2179bf58e..a9f75cadb 100644 --- a/common/src/main/java/org/vivecraft/client_vr/render/helpers/RenderHelper.java +++ b/common/src/main/java/org/vivecraft/client_vr/render/helpers/RenderHelper.java @@ -232,7 +232,7 @@ public static void drawScreen(float f, Screen screen, PoseStack poseStack) { posestack.translate(0.0D, 0.0D, -2000.0D); RenderSystem.applyModelViewMatrix(); - Matrix4f guiProjection = (new Matrix4f()).setOrtho( + Matrix4f guiProjection = Matrix4f.orthographic( 0.0F, (float) (mc.getWindow().getWidth() / mc.getWindow().getGuiScale()), (float) (mc.getWindow().getHeight() / mc.getWindow().getGuiScale()), 0.0F, 1000.0F, 3000.0F);