test/testviewport.c
changeset 9607 7746ab058d12
parent 9278 8900afb78a19
child 9619 b94b6d0bff0f
     1.1 --- a/test/testviewport.c	Mon May 18 21:17:13 2015 +0200
     1.2 +++ b/test/testviewport.c	Mon May 18 21:21:14 2015 +0200
     1.3 @@ -129,6 +129,12 @@
     1.4              SDL_RenderPresent(state->renderers[i]);
     1.5          }
     1.6      }
     1.7 +
     1.8 +#ifdef __EMSCRIPTEN__
     1.9 +    if (done) {
    1.10 +        emscripten_cancel_main_loop();
    1.11 +    }
    1.12 +#endif
    1.13  }
    1.14  
    1.15  int