1
0
mirror of https://github.com/ocornut/imgui.git synced 2025-02-02 04:28:04 +01:00

Examples: SDL3: Fix for Emscripten platform (#8363)

This commit is contained in:
Konstantin Podsvirov 2025-01-31 16:11:33 +03:00 committed by GitHub
parent ae6cfd32a0
commit e6c5296f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,6 @@
#include <SDL3/SDL_opengl.h>
#endif
// This example doesn't compile with Emscripten yet! Awaiting SDL3 support.
#ifdef __EMSCRIPTEN__
#include "../libs/emscripten/emscripten_mainloop_stub.h"
#endif

View File

@ -21,6 +21,10 @@
#include <SDL3/SDL_opengl.h>
#endif
#ifdef __EMSCRIPTEN__
#include "../libs/emscripten/emscripten_mainloop_stub.h"
#endif
// Main code
int main(int, char**)
{