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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user