0
0
Fork 0
mirror of https://github.com/ZDoom/gzdoom.git synced 2025-03-31 07:01:13 +00:00

- demote SDL_Wait errors to console printouts

This commit is contained in:
Rachael Alexanderson 2024-04-24 06:52:01 -04:00
parent 586e89954a
commit 83d751af72
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -289,7 +289,11 @@ void SDL2DisplayWindow::RunLoop()
SDL_Event event;
int result = SDL_WaitEvent(&event);
if (result == 0)
throw std::runtime_error(std::string("SDL_WaitEvent failed:") + SDL_GetError());
{
fprintf(stderr, "SDL_WaitEvent failed: ");
fprintf(stderr, SDL_GetError());
fprintf(stderr, "\n");
}
DispatchEvent(event);
}
}