mirror of https://github.com/encounter/SDL.git
* Fixed closing the test window.
This commit is contained in:
parent
ef52560a24
commit
31e8a4627a
|
@ -104,9 +104,11 @@ loop()
|
|||
|
||||
for (i = 0; i < state->num_windows; ++i) {
|
||||
SDL_Renderer *renderer = state->renderers[i];
|
||||
if (renderer != NULL) {
|
||||
SDL_RenderClear(renderer);
|
||||
SDL_RenderPresent(renderer);
|
||||
}
|
||||
}
|
||||
#ifdef __EMSCRIPTEN__
|
||||
if (done) {
|
||||
emscripten_cancel_main_loop();
|
||||
|
|
Loading…
Reference in New Issue