Commit 0ddd252fdd738f39d987ba58e14307a482cda684

Sam Lantinga 2014-06-07T17:25:56

Fixed initializing test event queue

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/test/testatomic.c b/test/testatomic.c
index 006fded..45e5b69 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;
 }