- demote SDL_Wait errors to console printouts

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

View file

@ -289,7 +289,7 @@ 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: %s\n", SDL_GetError());
DispatchEvent(event);
}
}