Showing the changes to interface/src/VoxelSystem.cpp (1 of 4 files). Show all
Unified · Split
| @@ -695,8 +695,7 @@ void VoxelSystem::render(bool texture) { · 694 unmodified lines | ||
| 695 | 695 | |
| 696 | 696 | applyScaleAndBindProgram(texture); |
| 697 | 697 | |
| 698 | − // for performance, disable blending and enable backface culling | |
| 699 | − glDisable(GL_BLEND); | |
| 698 | + // for performance, enable backface culling | |
| 700 | 699 | glEnable(GL_CULL_FACE); |
| 701 | 700 | |
| 702 | 701 | // draw the number of voxels we have |
| @@ -704,7 +703,6 @@ void VoxelSystem::render(bool texture) { · 1 unmodified line | ||
| 704 | 703 | glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays - 1, |
| 705 | 704 | 36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0); |
| 706 | 705 | |
| 707 | − glEnable(GL_BLEND); | |
| 708 | 706 | glDisable(GL_CULL_FACE); |
| 709 | 707 | |
| 710 | 708 | removeScaleAndReleaseProgram(texture); |