* Fixed closing the test window.

This commit is contained in:
Vladislav Dmitrievich Turbanov 2021-02-10 20:54:15 +03:00 committed by Valve
parent ef52560a24
commit 31e8a4627a
1 changed files with 4 additions and 2 deletions

View File

@ -104,8 +104,10 @@ loop()
for (i = 0; i < state->num_windows; ++i) {
SDL_Renderer *renderer = state->renderers[i];
SDL_RenderClear(renderer);
SDL_RenderPresent(renderer);
if (renderer != NULL) {
SDL_RenderClear(renderer);
SDL_RenderPresent(renderer);
}
}
#ifdef __EMSCRIPTEN__
if (done) {