-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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 static object destructors being called on gpu selection with X11 #68345
Conversation
@@ -208,7 +208,10 @@ int detect_prime() { | |||
print_verbose("Couldn't write vendor/renderer string."); | |||
} | |||
close(fdset[1]); | |||
exit(0); | |||
|
|||
//quick_exit() is used because exit() will call destructors on static objects copied by fork() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please amend the comment to use the same style as surrounding code (capitalized sentences ending with a period, space after //
).
You seem to have typoed your email in your Git identity, so it's not attributed to your GitHub account: https://patch-diff.githubusercontent.com/raw/godotengine/godot/pull/68345.patch You can edit your Git email locally, then amend the commit with |
Thanks! And congrats for your first merged Godot contribution 🎉 |
Cherry-picked for 3.6. |
Cherry-picked for 3.5.2 |
Resolves #68322
There is no need to call static object destructors on a child process that is used purely for determining the best GPU to use.