mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 17:05:36 +00:00
Don't warn if anyone peeps for events after quitting the event subsystem
Fixes https://github.com/libsdl-org/SDL/issues/5013
This commit is contained in:
parent
3318590796
commit
ecaa22cbe6
|
@ -684,7 +684,7 @@ SDL_PeepEventsInternal(SDL_Event * events, int numevents, SDL_eventaction action
|
||||||
/* Don't look after we've quit */
|
/* Don't look after we've quit */
|
||||||
if (!SDL_AtomicGet(&SDL_EventQ.active)) {
|
if (!SDL_AtomicGet(&SDL_EventQ.active)) {
|
||||||
/* We get a few spurious events at shutdown, so don't warn then */
|
/* We get a few spurious events at shutdown, so don't warn then */
|
||||||
if (action != SDL_ADDEVENT) {
|
if (action == SDL_GETEVENT) {
|
||||||
SDL_SetError("The event system has been shut down");
|
SDL_SetError("The event system has been shut down");
|
||||||
}
|
}
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
Loading…
Reference in a new issue