Showing the changes to interface/src/VoxelSystem.cpp (1 of 3 files). Show all
Unified · Split
| @@ -73,6 +73,7 @@ VoxelSystem::VoxelSystem(float treeScale, int maxVoxels) · 72 unmodified lines | |||
| 73 | _writeRenderFullVBO = true; | 73 | _writeRenderFullVBO = true; |
| 74 | _readRenderFullVBO = true; | 74 | _readRenderFullVBO = true; |
| 75 | _tree = new VoxelTree(); | 75 | _tree = new VoxelTree(); |
| 76 | |||
| 76 | _tree->rootNode->setVoxelSystem(this); | 77 | _tree->rootNode->setVoxelSystem(this); |
| 77 | pthread_mutex_init(&_bufferWriteLock, NULL); | 78 | pthread_mutex_init(&_bufferWriteLock, NULL); |
| 78 | pthread_mutex_init(&_treeLock, NULL); | 79 | pthread_mutex_init(&_treeLock, NULL); |
| @@ -133,7 +134,7 @@ void VoxelSystem::voxelUpdated(VoxelNode* node) { · 54 unmodified lines | |||
| 133 | } | 134 | } |
| 134 | 135 | ||
| 135 | if (node->getVoxelSystem() == this) { | 136 | if (node->getVoxelSystem() == this) { |
| 136 | bool shouldRender = false; // assume we don't need to render it | 137 | bool shouldRender = false; // assume we don't need to render it |
| 137 | // if it's colored, we might need to render it! | 138 | // if it's colored, we might need to render it! |
| 138 | shouldRender = node->calculateShouldRender(_viewFrustum); | 139 | shouldRender = node->calculateShouldRender(_viewFrustum); |
| 139 | 140 | ||