Showing the changes to interface/src/VoxelSystem.cpp (1 of 2 files). Show all
Unified · Split
| @@ -72,12 +72,12 @@ void VoxelSystem::voxelNodeDeleteHook(VoxelNode* node, void* extraData) { · 71 unmodified lines | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void VoxelSystem::freeBufferIndex(glBufferIndex index) { | 74 | void VoxelSystem::freeBufferIndex(glBufferIndex index) { |
| 75 | _freeIdexes.push_back(index); | 75 | _freeIndexes.push_back(index); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | void VoxelSystem::clearFreeBufferIndexes() { | 78 | void VoxelSystem::clearFreeBufferIndexes() { |
| 79 | for (int i = 0; i < _freeIdexes.size(); i++) { | 79 | for (int i = 0; i < _freeIndexes.size(); i++) { |
| 80 | glBufferIndex nodeIndex = _freeIdexes[i]; | 80 | glBufferIndex nodeIndex = _freeIndexes[i]; |
| 81 | glm::vec3 startVertex(FLT_MAX, FLT_MAX, FLT_MAX); | 81 | glm::vec3 startVertex(FLT_MAX, FLT_MAX, FLT_MAX); |
| 82 | float voxelScale = 0; | 82 | float voxelScale = 0; |
| 83 | _writeVoxelDirtyArray[nodeIndex] = true; | 83 | _writeVoxelDirtyArray[nodeIndex] = true; |
| @@ -85,7 +85,7 @@ void VoxelSystem::clearFreeBufferIndexes() { · 1 unmodified line | |||
| 85 | updateNodeInArrays(nodeIndex, startVertex, voxelScale, color); | 85 | updateNodeInArrays(nodeIndex, startVertex, voxelScale, color); |
| 86 | _abandonedVBOSlots++; | 86 | _abandonedVBOSlots++; |
| 87 | } | 87 | } |
| 88 | _freeIdexes.clear(); | 88 | _freeIndexes.clear(); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | VoxelSystem::~VoxelSystem() { | 91 | VoxelSystem::~VoxelSystem() { |