Add lock around recalculateMeshPartOffsets call

This commit is contained in:
Ryan Huffman 2015-06-19 16:28:58 -07:00
parent 1734d5e584
commit a7f291154b

View file

@ -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
if (!_calculatedMeshPartOffsetValid) {
_mutex.lock();
recalculateMeshPartOffsets();
_mutex.unlock();
}
auto textureCache = DependencyManager::get<TextureCache>();