Skip to content

Commit

Permalink
添加释放
Browse files Browse the repository at this point in the history
  • Loading branch information
tkzcfc committed Jan 1, 2020
1 parent d14ad8c commit 95b748a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/frameworks/runtime-src/Classes/ilayer/ILayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,14 @@ void ILayer::onExit()
// g_MouseCursors[cursor_n] = NULL;
//}

ImGui::SetCurrentContext(m_context);

irender->ImGui_ImplOpenGL3_Shutdown();
CC_SAFE_DELETE(irender);

ImGui::DestroyContext(m_context);
m_context = NULL;

Layer::onExit();
}

Expand Down

0 comments on commit 95b748a

Please sign in to comment.