Showing the changes to interface/src/VoxelSystem.cpp (1 of 7 files). Show all
Unified · Split
| @@ -1077,6 +1077,8 @@ void VoxelSystem::render(bool texture) { · 1076 unmodified lines | ||
| 1077 | 1077 | updateVBOs(); |
| 1078 | 1078 | |
| 1079 | 1079 | if (_useVoxelShader) { |
| 1080 | + PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), | |
| 1081 | + "render().. _useVoxelShader openGL.."); | |
| 1080 | 1082 | |
| 1081 | 1083 | Application::getInstance()->getVoxelShader().begin(); |
| 1082 | 1084 | |
| @@ -1106,6 +1108,8 @@ void VoxelSystem::render(bool texture) { · 23 unmodified lines | ||
| 1106 | 1108 | Application::getInstance()->getVoxelShader().end(); |
| 1107 | 1109 | |
| 1108 | 1110 | } else { |
| 1111 | + PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), "render().. openGL..."); | |
| 1112 | + | |
| 1109 | 1113 | // tell OpenGL where to find vertex and color information |
| 1110 | 1114 | glEnableClientState(GL_VERTEX_ARRAY); |
| 1111 | 1115 | glEnableClientState(GL_COLOR_ARRAY); |