Fix crash on windows (#1766)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-05-19 08:02:37 -07:00
1 parent fa91b70528
commit 9c1b6c75ff
8 files changed
+50 -8

No files matched your search

@@ -1560,6 +1560,11 @@ public class DeferredWorldRenderingPipeline implements WorldRenderingPipeline, R
@Override
public void beginLevelRendering() {
final Framebuffer mainFb = Minecraft.getMinecraft().getFramebuffer();
if (mainFb == null || mainFb.framebufferWidth < 16 || mainFb.framebufferHeight < 16) {
return;
}
isRenderingFullScreenPass = false;
isRenderingWorld = true;
isBeforeTranslucent = true;