Fixed possible race with mipmap assigning
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@894 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -982,6 +982,7 @@ PostProcessQueue (register VIEW_STATE view_state, register SIZE scroll_x,
|
|||||||
ElementPtr->next.image.frame);
|
ElementPtr->next.image.frame);
|
||||||
#endif /* SAFE */
|
#endif /* SAFE */
|
||||||
|
|
||||||
|
LockMutex (((PFRAME_DESC)ElementPtr->next.image.frame)->image->mutex);
|
||||||
if (index < 2 && scale != 256)
|
if (index < 2 && scale != 256)
|
||||||
{
|
{
|
||||||
// assigns next (smaller) zoom level image as mipmap, needed for trilinear scaling
|
// assigns next (smaller) zoom level image as mipmap, needed for trilinear scaling
|
||||||
@@ -995,6 +996,7 @@ PostProcessQueue (register VIEW_STATE view_state, register SIZE scroll_x,
|
|||||||
{
|
{
|
||||||
((PFRAME_DESC)ElementPtr->next.image.frame)->image->MipmapImg = NULL;
|
((PFRAME_DESC)ElementPtr->next.image.frame)->image->MipmapImg = NULL;
|
||||||
}
|
}
|
||||||
|
UnlockMutex (((PFRAME_DESC)ElementPtr->next.image.frame)->image->mutex);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
DisplayArray[ElementPtr->PrimIndex].Object.Stamp.frame =
|
DisplayArray[ElementPtr->PrimIndex].Object.Stamp.frame =
|
||||||
|
|||||||
Reference in New Issue
Block a user