浏览代码

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

Konstantin Podsvirov 7 月之前
父节点
当前提交
e6c5296f30
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 0 1
      examples/example_sdl3_opengl3/main.cpp
  2. 4 0
      examples/example_sdl3_sdlrenderer3/main.cpp

+ 0 - 1
examples/example_sdl3_opengl3/main.cpp

@@ -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

+ 4 - 0
examples/example_sdl3_sdlrenderer3/main.cpp

@@ -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**)
 {