diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-23 17:04:05 -0700 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-23 17:04:05 -0700 |
commit | f439828dc068974ddc161cc3469ac489a93bbabc (patch) | |
tree | 1d74af0b59744a17ba73716d91196922d3843859 /src/main.c | |
parent | 2c046ef3dca9e128a801c7a92c3a3a63e01fdd98 (diff) |
Working on the web assembly openglES issue
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,12 +1,6 @@ #include "gameCommon.h" #include "game.h" -//#define PLATFORM_WEB - -#if defined(PLATFORM_WEB) - #include <emscripten/emscripten.h> -#endif - Game game; void updateFrame() { @@ -16,7 +10,7 @@ void updateFrame() { int main(int argc, char ** argv) { initGame(&game); -#if defined(PLATFORM_WEB) +#ifdef PLATFORM_WEB emscripten_set_main_loop(updateFrame, 0, 1); #else while (!WindowShouldClose()) { |