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
This commit is contained in:
mcmartin
2002-12-05 02:14:24 +00:00
parent 534dde3b14
commit 86f74ceaf3
+1 -1
View File
@@ -154,7 +154,7 @@ TFB_DrawCommandQueue_Push (TFB_DrawCommandQueue* myQueue,
TFB_DrawCommand* Command) TFB_DrawCommand* Command)
{ {
Lock_DCQ (); Lock_DCQ ();
if (myQueue->Size < DCQ_MAX - 1) if (myQueue->FullSize < DCQ_MAX - 1)
{ {
DCQ[myQueue->InsertionPoint] = *Command; DCQ[myQueue->InsertionPoint] = *Command;
myQueue->InsertionPoint = (myQueue->InsertionPoint + 1) % DCQ_MAX; myQueue->InsertionPoint = (myQueue->InsertionPoint + 1) % DCQ_MAX;