mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:29:32 +02:00
cleanup code for PR
This commit is contained in:
parent
54364a235d
commit
aa80ec3497
1 changed files with 1 additions and 5 deletions
|
@ -649,11 +649,7 @@ void VoxelSystem::setupNewVoxelsForDrawing() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// lock on the buffer write lock so we can't modify the data when the GPU is reading it
|
// lock on the buffer write lock so we can't modify the data when the GPU is reading it
|
||||||
{
|
pthread_mutex_lock(&_bufferWriteLock);
|
||||||
PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
|
|
||||||
"setupNewVoxelsForDrawing()... pthread_mutex_lock(&_bufferWriteLock)");
|
|
||||||
pthread_mutex_lock(&_bufferWriteLock);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_voxelsUpdated) {
|
if (_voxelsUpdated) {
|
||||||
_voxelsDirty=true;
|
_voxelsDirty=true;
|
||||||
|
|
Loading…
Reference in a new issue