Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -649,11 +649,7 @@ void VoxelSystem::setupNewVoxelsForDrawing() { · 648 unmodified lines | |||
| 649 | } | 649 | } |
| 650 | 650 | ||
| 651 | // lock on the buffer write lock so we can't modify the data when the GPU is reading it | 651 | // lock on the buffer write lock so we can't modify the data when the GPU is reading it |
| 652 | { | 652 | pthread_mutex_lock(&_bufferWriteLock); |
| 653 | PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), | ||
| 654 | "setupNewVoxelsForDrawing()... pthread_mutex_lock(&_bufferWriteLock)"); | ||
| 655 | pthread_mutex_lock(&_bufferWriteLock); | ||
| 656 | } | ||
| 657 | 653 | ||
| 658 | if (_voxelsUpdated) { | 654 | if (_voxelsUpdated) { |
| 659 | _voxelsDirty=true; | 655 | _voxelsDirty=true; |