Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if main render target is initialized before resizing it #1946

Merged

Conversation

jellysquid3
Copy link
Contributor

If the user resizes the window after the early display has handed off to Minecraft, but prior to Minecraft finishing initialization of the renderer, a crash can occur due to the render target not yet being present. The crash can occasionally be reproduced by continuously resizing the window during startup.

This patch fixes the problem by checking if the main render target is initialized before trying to resize it.

If the user resizes the window after the early display has
handed off to Minecraft, but prior to Minecraft finishing
initialization of the renderer, a crash can occur due to
the render target not yet being present.
@neoforged-automation neoforged-automation bot added the 1.21.4 Targeted at Minecraft 1.21.4 label Feb 7, 2025
@CLAassistant
Copy link

CLAassistant commented Feb 7, 2025

CLA assistant check
All committers have signed the CLA.

@neoforged-pr-publishing
Copy link

  • Publish PR to GitHub Packages

@embeddedt embeddedt merged commit e8440e1 into neoforged:1.21.x Feb 8, 2025
7 checks passed
@neoforged-releases
Copy link

🚀 This PR has been released as NeoForge version 21.4.87-beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.4 Targeted at Minecraft 1.21.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants