- demote SDL_Wait errors to console printouts
This commit is contained in:
parent
25f791156f
commit
9d460d3f46
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue