Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -359,9 +359,9 @@ void HeightfieldBuffer::render() { · 358 unmodified lines | ||
| 359 | 359 | int nextLineIndex = (i + 1) * sizeWithSkirt; |
| 360 | 360 | for (int j = 0; j < rows; j++) { |
| 361 | 361 | *index++ = lineIndex + j; |
| 362 | − *index++ = lineIndex + j + 1; | |
| 363 | − *index++ = nextLineIndex + j + 1; | |
| 364 | 362 | *index++ = nextLineIndex + j; |
| 363 | + *index++ = nextLineIndex + j + 1; | |
| 364 | + *index++ = lineIndex + j + 1; | |
| 365 | 365 | } |
| 366 | 366 | } |
| 367 | 367 | |
| @@ -405,6 +405,7 @@ QHash<int, HeightfieldBuffer::BufferPair> HeightfieldBuffer::_bufferPairs; · 37 unmodified lines | ||
| 405 | 405 | |
| 406 | 406 | void HeightfieldPreview::render(const glm::vec3& translation, float scale) const { |
| 407 | 407 | glDisable(GL_BLEND); |
| 408 | + glEnable(GL_CULL_FACE); | |
| 408 | 409 | glEnable(GL_ALPHA_TEST); |
| 409 | 410 | glAlphaFunc(GL_EQUAL, 0.0f); |
| 410 | 411 | |
| @@ -431,6 +432,7 @@ void HeightfieldPreview::render(const glm::vec3& translation, float scale) const · 20 unmodified lines | ||
| 431 | 432 | glDisableClientState(GL_VERTEX_ARRAY); |
| 432 | 433 | |
| 433 | 434 | glDisable(GL_ALPHA_TEST); |
| 435 | + glDisable(GL_CULL_FACE); | |
| 434 | 436 | glEnable(GL_BLEND); |
| 435 | 437 | } |
| 436 | 438 | |
| @@ -737,6 +739,7 @@ void DefaultMetavoxelRendererImplementation::render(MetavoxelData& data, Metavox · 300 unmodified lines | ||
| 737 | 739 | |
| 738 | 740 | _pointProgram.release(); |
| 739 | 741 | |
| 742 | + glEnable(GL_CULL_FACE); | |
| 740 | 743 | glEnable(GL_ALPHA_TEST); |
| 741 | 744 | glAlphaFunc(GL_EQUAL, 0.0f); |
| 742 | 745 | |
| @@ -756,6 +759,7 @@ void DefaultMetavoxelRendererImplementation::render(MetavoxelData& data, Metavox · 13 unmodified lines | ||
| 756 | 759 | glDisableClientState(GL_VERTEX_ARRAY); |
| 757 | 760 | |
| 758 | 761 | glDisable(GL_ALPHA_TEST); |
| 762 | + glDisable(GL_CULL_FACE); | |
| 759 | 763 | glEnable(GL_BLEND); |
| 760 | 764 | } |
| 761 | 765 | |