From 86f74ceaf326af1118cc87538ce9994a8773c889 Mon Sep 17 00:00:00 2001 From: mcmartin Date: Thu, 5 Dec 2002 02:14:24 +0000 Subject: [PATCH] tamlin's DCQ fix (repairs an invariant violation under batching) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@335 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/dcqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c b/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c index a2a496795..4bbef3b2c 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c +++ b/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c @@ -154,7 +154,7 @@ TFB_DrawCommandQueue_Push (TFB_DrawCommandQueue* myQueue, TFB_DrawCommand* Command) { Lock_DCQ (); - if (myQueue->Size < DCQ_MAX - 1) + if (myQueue->FullSize < DCQ_MAX - 1) { DCQ[myQueue->InsertionPoint] = *Command; myQueue->InsertionPoint = (myQueue->InsertionPoint + 1) % DCQ_MAX;