Fix GLFW crash when Python exits while the passive viewer is running.
Fixes #790 PiperOrigin-RevId: 549440435 Change-Id: I808f6aaab6662225e5fe1131e0da72eca6011ba9
This commit is contained in:
committed by
Copybara-Service
parent
8386b28877
commit
f7847ba73e
@@ -110,6 +110,7 @@ GlfwAdapter::GlfwAdapter() {
|
||||
}
|
||||
|
||||
GlfwAdapter::~GlfwAdapter() {
|
||||
FreeMjrContext();
|
||||
Glfw().glfwMakeContextCurrent(nullptr);
|
||||
Glfw().glfwDestroyWindow(window_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user