Showing the changes to interface/src/VoxelSystem.cpp (1 of 2 files). Show all
Unified · Split
| @@ -46,7 +46,6 @@ VoxelSystem::VoxelSystem() { · 45 unmodified lines | ||
| 46 | 46 | _alwaysRenderFullVBO = true; |
| 47 | 47 | _tree = new VoxelTree(); |
| 48 | 48 | pthread_mutex_init(&_bufferWriteLock, NULL); |
| 49 | − pthread_mutex_init(&_voxelCleanupLock, NULL); | |
| 50 | 49 | } |
| 51 | 50 | |
| 52 | 51 | VoxelSystem::~VoxelSystem() { |
| @@ -57,7 +56,6 @@ VoxelSystem::~VoxelSystem() { · 4 unmodified lines | ||
| 57 | 56 | delete[] _voxelDirtyArray; |
| 58 | 57 | delete _tree; |
| 59 | 58 | pthread_mutex_destroy(&_bufferWriteLock); |
| 60 | − pthread_mutex_destroy(&_voxelCleanupLock); | |
| 61 | 59 | } |
| 62 | 60 | |
| 63 | 61 | void VoxelSystem::loadVoxelsFile(const char* fileName, bool wantColorRandomizer) { |
| @@ -616,8 +614,6 @@ bool VoxelSystem::hasViewChanged() { · 552 unmodified lines | ||
| 616 | 614 | |
| 617 | 615 | void VoxelSystem::removeOutOfView() { |
| 618 | 616 | PerformanceWarning warn(_renderWarningsOn, "removeOutOfView()"); // would like to include removedCount, _nodeCount, _removedVoxels.count() |
| 619 | − pthread_mutex_lock(&_voxelCleanupLock); | |
| 620 | 617 | _nodeCount = 0; |
| 621 | 618 | _tree->recurseTreeWithOperation(removeOutOfViewOperation,(void*)this); |
| 622 | − pthread_mutex_unlock(&_voxelCleanupLock); | |
| 623 | 619 | } |