Skip to content

Commit

Permalink
#3488 Fix cache using wrong offset
Browse files Browse the repository at this point in the history
  • Loading branch information
akleshchev committed Feb 4, 2025
1 parent 587444b commit 912c99a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions indra/newview/llmeshrepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3706,7 +3706,7 @@ void LLMeshLODHandler::processLod(U8* data, S32 data_size)
write_preamble(file, header_bytes, flags);
}

file.seek(offset);
file.seek(offset, 0);
file.write(data, size);
LLMeshRepository::sCacheBytesWritten += size;
++LLMeshRepository::sCacheWrites;
Expand Down Expand Up @@ -3828,7 +3828,7 @@ void LLMeshSkinInfoHandler::processData(LLCore::BufferArray * /* body */, S32 /*
write_preamble(file, header_bytes, flags);
}

file.seek(offset);
file.seek(offset, 0);
file.write(data, size);
}
}
Expand Down Expand Up @@ -3903,7 +3903,7 @@ void LLMeshDecompositionHandler::processData(LLCore::BufferArray * /* body */, S
write_preamble(file, header_bytes, flags);
}

file.seek(offset);
file.seek(offset, 0);
file.write(data, size);
}
}
Expand Down Expand Up @@ -3976,7 +3976,7 @@ void LLMeshPhysicsShapeHandler::processData(LLCore::BufferArray * /* body */, S3
write_preamble(file, header_bytes, flags);
}

file.seek(offset);
file.seek(offset, 0);
file.write(data, size);
}
}
Expand Down

0 comments on commit 912c99a

Please sign in to comment.