From 0ddd252fdd738f39d987ba58e14307a482cda684 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 7 Jun 2014 17:25:56 -0700 Subject: [PATCH] Fixed initializing test event queue --- test/testatomic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testatomic.c b/test/testatomic.c index 006fdedf7..45e5b69a4 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -306,6 +306,7 @@ static void InitEventQueue(SDL_EventQueue *queue) #ifdef TEST_SPINLOCK_FIFO queue->lock = 0; SDL_AtomicSet(&queue->rwcount, 0); + SDL_AtomicSet(&queue->watcher, 0); #endif queue->active = SDL_TRUE; }