History

clean up more menu items

ZappoMan committed 12 years ago

Commit b7f62ea1 parent 8d53fc94 files · +19 −39Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+2−7
@@ -867,7 +867,6 @@ void VoxelSystem::checkForCulling() { · 866 unmodified lines
867867 bool fullRedraw = (_lastKnownVoxelSizeScale != Menu::getInstance()->getVoxelSizeScale() ||
868868 _lastKnownBoundaryLevelAdjust != Menu::getInstance()->getBoundaryLevelAdjust());
869869
870− // track that these values
871870 _lastKnownVoxelSizeScale = Menu::getInstance()->getVoxelSizeScale();
872871 _lastKnownBoundaryLevelAdjust = Menu::getInstance()->getBoundaryLevelAdjust();
873872
@@ -1386,7 +1385,6 @@ void VoxelSystem::render() { · 512 unmodified lines
13861385
13871386 updateVBOs();
13881387
1389− bool dontCallOpenGLDraw = Menu::getInstance()->isOptionChecked(MenuOption::DontCallOpenGLForVoxels);
13901388 // if not don't... then do...
13911389 if (_useVoxelShader) {
13921390 PerformanceWarning warn(showWarnings,"render().. _useVoxelShader openGL..");
@@ -1432,9 +1430,7 @@ void VoxelSystem::render() { · 39 unmodified lines
14321430
14331431 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _vboVoxelsIndicesID);
14341432
1435− if (!dontCallOpenGLDraw) {
1436− glDrawElements(GL_POINTS, _voxelsInReadArrays, GL_UNSIGNED_INT, BUFFER_OFFSET(0)); //The starting point of the IBO
1437− }
1433+ glDrawElements(GL_POINTS, _voxelsInReadArrays, GL_UNSIGNED_INT, BUFFER_OFFSET(0)); //The starting point of the IBO
14381434
14391435 // deactivate vertex and color arrays after drawing
14401436 glDisableClientState(GL_VERTEX_ARRAY);
@@ -1477,7 +1473,7 @@ void VoxelSystem::render() { · 36 unmodified lines
14771473
14781474 // draw voxels in 6 passes
14791475
1480− if (!dontCallOpenGLDraw) {
1476+ {
14811477 PerformanceWarning warn(showWarnings, "render().. glDrawRangeElementsEXT()...");
14821478
14831479 glNormal3f(0,1.0f,0);
@@ -1510,7 +1506,6 @@ void VoxelSystem::render() { · 26 unmodified lines
15101506 glDrawRangeElementsEXT(GL_TRIANGLES, 0, GLOBAL_NORMALS_VERTICES_PER_VOXEL * _voxelsInReadArrays - 1,
15111507 INDICES_PER_FACE * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);
15121508 }
1513−
15141509 {
15151510 PerformanceWarning warn(showWarnings, "render().. cleanup after glDrawRangeElementsEXT()...");
15161511