Fixed initializing test event queue

This commit is contained in:
Sam Lantinga 2014-06-07 17:25:56 -07:00
parent 5907cfaadf
commit 0ddd252fdd
1 changed files with 1 additions and 0 deletions

View File

@ -306,6 +306,7 @@ static void InitEventQueue(SDL_EventQueue *queue)
#ifdef TEST_SPINLOCK_FIFO #ifdef TEST_SPINLOCK_FIFO
queue->lock = 0; queue->lock = 0;
SDL_AtomicSet(&queue->rwcount, 0); SDL_AtomicSet(&queue->rwcount, 0);
SDL_AtomicSet(&queue->watcher, 0);
#endif #endif
queue->active = SDL_TRUE; queue->active = SDL_TRUE;
} }