mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 03:58:47 +02:00
Examples: Updated for reorganized context functions. Calling CreateContext(), DestroyContext() in example code. Removed Shutdown() from binding code. (#1565, #586, #992, #1007, #1558)
This commit is contained in:
@ -27,6 +27,7 @@ int main(int, char**)
|
||||
glfwSwapInterval(1); // Enable vsync
|
||||
|
||||
// Setup ImGui binding
|
||||
ImGui::CreateContext();
|
||||
ImGui_ImplGlfwGL2_Init(window, true);
|
||||
|
||||
// Setup style
|
||||
@ -105,6 +106,7 @@ int main(int, char**)
|
||||
|
||||
// Cleanup
|
||||
ImGui_ImplGlfwGL2_Shutdown();
|
||||
ImGui::DestroyContext();
|
||||
glfwTerminate();
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user