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

Wait for window initialization to complete in setupMinecraftWindow #37

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

embeddedt
Copy link
Member

This should fix the crash reported in MinecraftForge/MinecraftForge#9673. I suspect the GL context takes a long time to initialize, and so setupMinecraftWindow gets called before initRender actually returns. Blocking on the future returned by the scheduler should resolve this.

I accidentally pushed this to a branch on the upstream repo instead of my fork, sorry about that.

@marchermans marchermans merged commit ef435db into main Nov 9, 2023
1 check passed
@Matyrobbrt Matyrobbrt deleted the fix/race branch December 21, 2024 23:16
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