History

fix voxels as points menu to work correctly on startup

ZappoMan committed 13 years ago

Commit 3f9631d1 parent 0bbbd7e1 file · +6 −0Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/VoxelSystem.cpp+6−0
@@ -416,6 +416,12 @@ void VoxelSystem::initVoxelMemory() { · 415 unmodified lines
416416
417417 _memoryUsageRAM = 0;
418418 _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+
419425 if (_useVoxelShader) {
420426 GLuint* indicesArray = new GLuint[_maxVoxels];
421427