Skip to content

Commit

Permalink
Fix #1431
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Nov 2, 2023
1 parent 11278f4 commit 536b284
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static void exportRecipe(Rectangle rectangle, DisplaySpec display, List<
RenderTarget renderTarget = new TextureTarget(window.getWidth(), window.getHeight(), true, false);
renderTarget.bindWrite(true);
RenderSystem.clear(256, Minecraft.ON_OSX);
Matrix4f matrix4f = new Matrix4f().setOrtho(0.0F, (float) ((double) window.getWidth() / window.getGuiScale()), 0.0F, (float) ((double) window.getHeight() / window.getGuiScale()), 1000.0F, 3000.0F);
Matrix4f matrix4f = new Matrix4f().setOrtho(0.0F, (float) ((double) window.getWidth() / window.getGuiScale()), (float) ((double) window.getHeight() / window.getGuiScale()), 0.0F, 1000.0F, 3000.0F);
RenderSystem.setProjectionMatrix(matrix4f);
PoseStack poseStack = RenderSystem.getModelViewStack();
poseStack.pushPose();
Expand Down

0 comments on commit 536b284

Please sign in to comment.