Clear the queue active flag when we shutdown, so we don't have a mutex error trying to read the queue.
This commit is contained in:
parent
c328979f60
commit
29b5947d0c
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ SDL_StopEventLoop(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
SDL_EventQ.active = 0;
|
||||
|
||||
if (SDL_EventQ.lock) {
|
||||
SDL_DestroyMutex(SDL_EventQ.lock);
|
||||
SDL_EventQ.lock = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue