Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1073,6 +1073,8 @@ void HeightfieldBuffer::render(bool cursor) { · 1072 unmodified lines | |||
| 1073 | QHash<int, HeightfieldBuffer::BufferPair> HeightfieldBuffer::_bufferPairs; | 1073 | QHash<int, HeightfieldBuffer::BufferPair> HeightfieldBuffer::_bufferPairs; |
| 1074 | 1074 | ||
| 1075 | void HeightfieldPreview::render(const glm::vec3& translation, float scale) const { | 1075 | void HeightfieldPreview::render(const glm::vec3& translation, float scale) const { |
| 1076 | glDrawBuffers(sizeof(COLOR_NORMAL_DRAW_BUFFERS) / sizeof(COLOR_NORMAL_DRAW_BUFFERS[0]), COLOR_NORMAL_DRAW_BUFFERS); | ||
| 1077 | |||
| 1076 | glDisable(GL_BLEND); | 1078 | glDisable(GL_BLEND); |
| 1077 | glEnable(GL_CULL_FACE); | 1079 | glEnable(GL_CULL_FACE); |
| 1078 | glEnable(GL_ALPHA_TEST); | 1080 | glEnable(GL_ALPHA_TEST); |
| @@ -1103,6 +1105,8 @@ void HeightfieldPreview::render(const glm::vec3& translation, float scale) const · 24 unmodified lines | |||
| 1103 | glDisable(GL_ALPHA_TEST); | 1105 | glDisable(GL_ALPHA_TEST); |
| 1104 | glDisable(GL_CULL_FACE); | 1106 | glDisable(GL_CULL_FACE); |
| 1105 | glEnable(GL_BLEND); | 1107 | glEnable(GL_BLEND); |
| 1108 | |||
| 1109 | glDrawBuffers(sizeof(COLOR_DRAW_BUFFERS) / sizeof(COLOR_DRAW_BUFFERS[0]), COLOR_DRAW_BUFFERS); | ||
| 1106 | } | 1110 | } |
| 1107 | 1111 | ||
| 1108 | VoxelBuffer::VoxelBuffer(const QVector<VoxelPoint>& vertices, const QVector<int>& indices, | 1112 | VoxelBuffer::VoxelBuffer(const QVector<VoxelPoint>& vertices, const QVector<int>& indices, |