a trivial code change for SH-3073. The change makes sure to clear the texture fetching queue ONLY once during a teleporting.

meow-7.2.2
Xiaohong Bao 2012-07-23 17:41:21 -06:00
parent afcc61a07a
commit d306cb059b
1 changed files with 7 additions and 4 deletions

View File

@ -610,11 +610,14 @@ static LLFastTimer::DeclareTimer FTM_IMAGE_STATS("Stats");
void LLViewerTextureList::updateImages(F32 max_time)
{
static BOOL cleared = FALSE;
if(gTeleportDisplay && !cleared)
if(gTeleportDisplay)
{
clearFetchingRequests();
gPipeline.clearRebuildGroups();
cleared = TRUE;
if(!cleared)
{
clearFetchingRequests();
gPipeline.clearRebuildGroups();
cleared = TRUE;
}
return;
}
cleared = FALSE;