Apparently LLMeshRepoThread::lodReceived leaked and LL decided to fix it.
This commit is contained in:
@@ -1075,17 +1075,19 @@ bool LLMeshRepoThread::headerReceived(const LLVolumeParams& mesh_params, U8* dat
|
||||
|
||||
bool LLMeshRepoThread::lodReceived(const LLVolumeParams& mesh_params, S32 lod, U8* data, S32 data_size)
|
||||
{
|
||||
LLVolume* volume = new LLVolume(mesh_params, LLVolumeLODGroup::getVolumeScaleFromDetail(lod));
|
||||
LLPointer<LLVolume> volume = new LLVolume(mesh_params, LLVolumeLODGroup::getVolumeScaleFromDetail(lod));
|
||||
std::string mesh_string((char*) data, data_size);
|
||||
std::istringstream stream(mesh_string);
|
||||
|
||||
if (volume->unpackVolumeFaces(stream, data_size))
|
||||
{
|
||||
LoadedMesh mesh(volume, mesh_params, lod);
|
||||
if (volume->getNumFaces() > 0)
|
||||
{
|
||||
LLMutexLock lock(mMutex);
|
||||
mLoadedQ.push(mesh);
|
||||
LoadedMesh mesh(volume, mesh_params, lod);
|
||||
{
|
||||
LLMutexLock lock(mMutex);
|
||||
mLoadedQ.push(mesh);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user