Examples: Fix for Emscripten. GLFW+WGPU: rework examples main loop to handle minimization. (#7844)

Amend 8874787, 71ee2ce
Amend ea39841f (emscripten_mainloop_stub.h)
This commit is contained in:
ocornut
2024-07-31 17:47:38 +02:00
parent 71ee2ce367
commit fd57b252ac
3 changed files with 12 additions and 3 deletions

View File

@@ -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();