-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Visualizer: remove glfwTerminate() call from destructor (fix #4960) #4963
Conversation
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
@@ -193,13 +193,15 @@ bool ViewControl::ConvertFromPinholeCameraParameters( | |||
bool allow_arbitrary) { | |||
auto intrinsic = parameters.intrinsic_; | |||
auto extrinsic = parameters.extrinsic_; | |||
|
|||
constexpr double threshold = 1.e-6; |
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.
Should this be a parameter of the function?
10b7ff7
to
7753ae0
Compare
7753ae0
to
c02c810
Compare
c02c810
to
0821d31
Compare
Ok PR ready for review! I added some more information in #4960. |
Needs testing on all platforms. |
Closing this and copying changes to PR #6559 to allow resolving merge conflicts. |
…(See PR #4963) [Author: @bchretien] (#6559) * examples: fix headless_rendering.py * ViewControl.cpp: relax floating-point comparison in ConvertFromPinholeCameraParameters() * Visualizer: improve GLTF context handling (fix #4960) --------- Authored-by: Benjamin Chrétien <[email protected]>
Summary of changes:
glfwTerminate()
was called everytime aVisualizer
is destroyed. Now a true singleton shared context is used, and terminate is only called if there is no remaining activeVisualizer
. I also fixedDestroyVisualizerWindow()
.headless_rendering.py
: fix the example.ViewControl::ConvertFromPinholeCameraParameters()
: relax the equality check due to floating-point errors.This change is