Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -416,6 +416,12 @@ void VoxelSystem::initVoxelMemory() { · 415 unmodified lines | ||
| 416 | 416 | |
| 417 | 417 | _memoryUsageRAM = 0; |
| 418 | 418 | _memoryUsageVBO = 0; // our VBO allocations as we know them |
| 419 | + | |
| 420 | + // if _voxelsAsPoints then we must have _useVoxelShader | |
| 421 | + if (_voxelsAsPoints && !_useVoxelShader) { | |
| 422 | + _useVoxelShader = true; | |
| 423 | + } | |
| 424 | + | |
| 419 | 425 | if (_useVoxelShader) { |
| 420 | 426 | GLuint* indicesArray = new GLuint[_maxVoxels]; |
| 421 | 427 | |