Skip to content

Commit

Permalink
set m_Window to nullptr when window is destroyed
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
arozx and coderabbitai[bot] authored Feb 25, 2025
1 parent d65e392 commit 662d5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Window/OpenGLWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ namespace Engine {
void OpenGLWindow::Shutdown() {
if (m_Window) {
glfwDestroyWindow(m_Window);
// m_Window = nullptr;
m_Window = nullptr;
}
glfwTerminate();
}
Expand Down

0 comments on commit 662d5c8

Please sign in to comment.