mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 20:18: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:
@ -4,6 +4,7 @@
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
ImGui::CreateContext();
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
|
||||
// Build atlas
|
||||
@ -27,7 +28,7 @@ int main(int, char**)
|
||||
ImGui::Render();
|
||||
}
|
||||
|
||||
printf("Shutdown()\n");
|
||||
ImGui::Shutdown();
|
||||
printf("DestroyContext()\n");
|
||||
ImGui::DestroyContext();
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user