1. simon_linden
  2. viewer-rabbit

Commits

Nicky  committed 99e8f16

Make sure only one thread access mPendingLOD at a time.

  • Participants
  • Parent commits 83d5d50
  • Branches default

Comments (0)

Files changed (1)

File indra/newview/llmeshrepository.cpp

View file
 			mMeshHeader[mesh_id] = header;
 			}
 
+
+		LLMutexLock lock(mMutex); // make sure only one thread access mPendingLOD at the same time.
+
 		//check for pending requests
 		pending_lod_map::iterator iter = mPendingLOD.find(mesh_params);
 		if (iter != mPendingLOD.end())
 		{
-			LLMutexLock lock(mMutex);
 			for (U32 i = 0; i < iter->second.size(); ++i)
 			{
 				LODRequest req(mesh_params, iter->second[i]);