Skip to content

Conversation

samarth-robo
Copy link

GLFW guidelines say glfwTerminate() should not be called inside an event callback, since it is not reentrant. This fixes segfault when closing the MjViewer window by pressing ESC.

[GLFW guidelines](https://www.glfw.org/docs/3.3/intro_guide.html#reentrancy) say `glfwTerminate()` should not be called inside an event callback, since it is not reentrant. This fixes segfault when closing the `MjViewer` window by pressing ESC.
@samarth-robo samarth-robo changed the title avoid calling glfwTerminate( ) inside callback avoid calling glfwTerminate() inside callback Jan 14, 2021
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.

1 participant