Skip to content
Snippets Groups Projects
Commit dd2b67c1 authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#60][Fix] fix error when closing a window

Fixed error: d:\agent\_work\3\s\src\vctools\crt\github\stl\src\mutex.cpp(64): mutex destroyed while busy
parent 020e3dad
No related branches found
No related tags found
1 merge request!65Resolve "Kamera - Steuerung mittels Controller"
Pipeline #25936 passed
......@@ -33,6 +33,14 @@ namespace vkcv {
}
Window::~Window() {
Window::e_mouseButton.unlock();
Window::e_mouseMove.unlock();
Window::e_mouseScroll.unlock();
Window::e_resize.unlock();
Window::e_key.unlock();
Window::e_char.unlock();
Window::e_gamepad.unlock();
s_Windows.erase(std::find(s_Windows.begin(), s_Windows.end(), m_window));
glfwDestroyWindow(m_window);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment