diff options
author | Callum Prentice <callum@gmail.com> | 2020-10-06 17:16:53 -0700 |
---|---|---|
committer | Callum Prentice <callum@gmail.com> | 2020-10-06 17:16:53 -0700 |
commit | 3092aa8aae496803707980eb456cddbb9960ef1c (patch) | |
tree | 4edf4ba655c005bdd89c7bd18641ed15d0840b6c /indra/newview/llmeshrepository.cpp | |
parent | 354930014bc90a9c92b33300e5ecaf7fa861fe7b (diff) |
Add in the C++ filesystem based cache and clean up some indempotent functions in llfilesystem
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rw-r--r-- | indra/newview/llmeshrepository.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index a0d591dc47..3183e6d8fd 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -3241,7 +3241,7 @@ void LLMeshHeaderHandler::processData(LLCore::BufferArray * /* body */, S32 /* b data_size = llmin(data_size, bytes); LLFileSystem file(mesh_id, LLAssetType::AT_MESH, LLFileSystem::WRITE); - if (file.getMaxSize() >= bytes || file.setMaxSize(bytes)) + if (file.getMaxSize() >= bytes) { LLMeshRepository::sCacheBytesWritten += data_size; ++LLMeshRepository::sCacheWrites; |