Simulate: fixes for windows version

This commit is contained in:
Levi Burner
2022-06-02 17:11:24 -04:00
parent 1d4461fce6
commit ed82f055e8
3 changed files with 27 additions and 2 deletions
+6
View File
@@ -1901,6 +1901,12 @@ void Simulate::renderthread(void) {
this->clearcallback();
mjv_freeScene(&this->scn);
mjr_freeContext(&this->con);
// terminate GLFW (crashes with Linux NVidia drivers)
// Must call terminate in this thread on Windows with NVidia drivers (Intel is fine)
#if defined(__APPLE__) || defined(_WIN32)
glfwTerminate();
#endif
}
} // namespace mujoco