test/testrendertarget.c
changeset 9607 7746ab058d12
parent 9278 8900afb78a19
child 9619 b94b6d0bff0f
     1.1 --- a/test/testrendertarget.c	Mon May 18 21:17:13 2015 +0200
     1.2 +++ b/test/testrendertarget.c	Mon May 18 21:21:14 2015 +0200
     1.3 @@ -241,6 +241,11 @@
     1.4              if (!Draw(&drawstates[i])) done = 1;
     1.5          }
     1.6      }
     1.7 +#ifdef __EMSCRIPTEN__
     1.8 +    if (done) {
     1.9 +        emscripten_cancel_main_loop();
    1.10 +    }
    1.11 +#endif
    1.12  }
    1.13  
    1.14  int