mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-13 01:04:31 +01:00
Examples: SDL3: Fix for Emscripten platform (#8363)
This commit is contained in:
parent
ae6cfd32a0
commit
e6c5296f30
@ -18,7 +18,6 @@
|
|||||||
#include <SDL3/SDL_opengl.h>
|
#include <SDL3/SDL_opengl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// This example doesn't compile with Emscripten yet! Awaiting SDL3 support.
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
#include "../libs/emscripten/emscripten_mainloop_stub.h"
|
#include "../libs/emscripten/emscripten_mainloop_stub.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
#include <SDL3/SDL_opengl.h>
|
#include <SDL3/SDL_opengl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
#include "../libs/emscripten/emscripten_mainloop_stub.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
int main(int, char**)
|
int main(int, char**)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user