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

Fix crash when toggling alt assets while paused #4621

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Dec 5, 2024

This fixes a crash identified in 2ship HarbourMasters/2ship2harkinian#839 when toggling alt assets while the pause menu is up.

The fix checks when alt assets get toggled, and when it does, force a new pause menu background to be captured. By doing this we render the game world for one frame, which will leave the render state in a "good" state for the framebuffer draw to rely on. This has the added benefit of having the pause menu background "update" for any new textures applied by alt toggling.

Build Artifacts

@Archez Archez merged commit bccd969 into HarbourMasters:develop Dec 6, 2024
5 checks passed
@Archez Archez deleted the fix-pause-alt-toggle-crash branch December 6, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants