mirror of
https://github.com/ocornut/imgui.git
synced 2025-10-25 20:07:00 +00:00
Examples: Fix for Emscripten. GLFW+WGPU: rework examples main loop to handle minimization. (#7844)
Amend8874787,71ee2ceAmendea39841f(emscripten_mainloop_stub.h)
This commit is contained in:
@@ -167,6 +167,9 @@ int main(int, char**)
|
||||
ImGui_ImplSDLRenderer3_RenderDrawData(ImGui::GetDrawData(), renderer);
|
||||
SDL_RenderPresent(renderer);
|
||||
}
|
||||
#ifdef __EMSCRIPTEN__
|
||||
EMSCRIPTEN_MAINLOOP_END;
|
||||
#endif
|
||||
|
||||
// Cleanup
|
||||
ImGui_ImplSDLRenderer3_Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user