Showing the changes to interface/src/VoxelSystem.cpp (1 of 2 files). Show all
Unified · Split
| @@ -256,7 +256,6 @@ void VoxelSystem::copyWrittenDataToReadArraysFullVBOs() { · 255 unmodified lines | |||
| 256 | 256 | ||
| 257 | void VoxelSystem::copyWrittenDataToReadArraysPartialVBOs() { | 257 | void VoxelSystem::copyWrittenDataToReadArraysPartialVBOs() { |
| 258 | glBufferIndex segmentStart = 0; | 258 | glBufferIndex segmentStart = 0; |
| 259 | glBufferIndex segmentEnd = 0; | ||
| 260 | bool inSegment = false; | 259 | bool inSegment = false; |
| 261 | for (glBufferIndex i = 0; i < _voxelsInWriteArrays; i++) { | 260 | for (glBufferIndex i = 0; i < _voxelsInWriteArrays; i++) { |
| 262 | bool thisVoxelDirty = _writeVoxelDirtyArray[i]; | 261 | bool thisVoxelDirty = _writeVoxelDirtyArray[i]; |
| @@ -560,7 +559,6 @@ void VoxelSystem::updateFullVBOs() { · 297 unmodified lines | |||
| 560 | 559 | ||
| 561 | void VoxelSystem::updatePartialVBOs() { | 560 | void VoxelSystem::updatePartialVBOs() { |
| 562 | glBufferIndex segmentStart = 0; | 561 | glBufferIndex segmentStart = 0; |
| 563 | glBufferIndex segmentEnd = 0; | ||
| 564 | bool inSegment = false; | 562 | bool inSegment = false; |
| 565 | for (glBufferIndex i = 0; i < _voxelsInReadArrays; i++) { | 563 | for (glBufferIndex i = 0; i < _voxelsInReadArrays; i++) { |
| 566 | bool thisVoxelDirty = _readVoxelDirtyArray[i]; | 564 | bool thisVoxelDirty = _readVoxelDirtyArray[i]; |