summaryrefslogtreecommitdiff
path: root/indra/newview/llmeshrepository.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2020-10-26 19:49:45 +0000
committerCallum Linden <callum@lindenlab.com>2020-10-26 19:49:45 +0000
commit1c94c929ea99f79b87b58097348e0364512da9ad (patch)
tree461abf5b7c657d1c73df530ffcaa1fd9ca46bee8 /indra/newview/llmeshrepository.cpp
parent1cdcc00319c87b9be6ed677e4b36b0b53a1acb3e (diff)
parentc66c426d6b5bfab3922471adf7402bee5d10f8ec (diff)
Merged in DRTVWR-519 (pull request #356)
SL-14148 remove redundant zeroing of the file Approved-by: Callum Linden
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rw-r--r--indra/newview/llmeshrepository.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 3183e6d8fd..bd4bebbf23 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -3247,21 +3247,6 @@ void LLMeshHeaderHandler::processData(LLCore::BufferArray * /* body */, S32 /* b
++LLMeshRepository::sCacheWrites;
file.write(data, data_size);
-
- // zero out the rest of the file
- U8 block[MESH_HEADER_SIZE];
- memset(block, 0, sizeof(block));
-
- while (bytes-file.tell() > sizeof(block))
- {
- file.write(block, sizeof(block));
- }
-
- S32 remaining = bytes-file.tell();
- if (remaining > 0)
- {
- file.write(block, remaining);
- }
}
}
else