mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:21:10 +02:00
Add lock around recalculateMeshPartOffsets call
This commit is contained in:
parent
1734d5e584
commit
a7f291154b
1 changed files with 2 additions and 0 deletions
|
@ -1811,7 +1811,9 @@ void Model::renderPart(RenderArgs* args, int meshIndex, int partIndex, bool tran
|
||||||
|
|
||||||
// We need to make sure we have valid offsets calculated before we can render
|
// We need to make sure we have valid offsets calculated before we can render
|
||||||
if (!_calculatedMeshPartOffsetValid) {
|
if (!_calculatedMeshPartOffsetValid) {
|
||||||
|
_mutex.lock();
|
||||||
recalculateMeshPartOffsets();
|
recalculateMeshPartOffsets();
|
||||||
|
_mutex.unlock();
|
||||||
}
|
}
|
||||||
auto textureCache = DependencyManager::get<TextureCache>();
|
auto textureCache = DependencyManager::get<TextureCache>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue