Skip to content
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

avoid calling glfwTerminate() inside callback #603

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant