test/testviewport.c
changeset 9607 7746ab058d12
parent 9278 8900afb78a19
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9606:ec24a5add229 9607:7746ab058d12
   127             SDL_SetRenderTarget(state->renderers[i], state->targets[i]);
   127             SDL_SetRenderTarget(state->renderers[i], state->targets[i]);
   128         } else {
   128         } else {
   129             SDL_RenderPresent(state->renderers[i]);
   129             SDL_RenderPresent(state->renderers[i]);
   130         }
   130         }
   131     }
   131     }
       
   132 
       
   133 #ifdef __EMSCRIPTEN__
       
   134     if (done) {
       
   135         emscripten_cancel_main_loop();
       
   136     }
       
   137 #endif
   132 }
   138 }
   133 
   139 
   134 int
   140 int
   135 main(int argc, char *argv[])
   141 main(int argc, char *argv[])
   136 {
   142 {