History

Heightfield material paint bits.

Andrzej Kapolka committed 12 years ago

Commit bba042e1 parent 6dc4abd6 files · +172 −130Browse files

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

Unified · Split

interface/src/MetavoxelSystem.cpp+3−4
@@ -2869,8 +2869,7 @@ void HeightfieldRenderer::render(bool cursor) { · 2868 unmodified lines
28692869 glDrawRangeElements(GL_TRIANGLES, 0, vertexCount - 1, indexCount, GL_UNSIGNED_INT, 0);
28702870
28712871 glBindTexture(GL_TEXTURE_2D, 0);
2872− glActiveTexture(GL_TEXTURE0);
2873−
2872+
28742873 Application::getInstance()->getTextureCache()->setPrimaryDrawBuffers(true, false);
28752874
28762875 DefaultMetavoxelRendererImplementation::getBaseHeightfieldProgram().release();
@@ -2946,14 +2945,14 @@ void HeightfieldRenderer::render(bool cursor) { · 69 unmodified lines
29462945 glActiveTexture(GL_TEXTURE1);
29472946 glBindTexture(GL_TEXTURE_2D, 0);
29482947
2949− glActiveTexture(GL_TEXTURE0);
2950−
29512948 DefaultMetavoxelRendererImplementation::getSplatHeightfieldProgram().release();
29522949
29532950 glDisable(GL_POLYGON_OFFSET_FILL);
29542951 glDepthMask(true);
29552952 glDepthFunc(GL_LESS);
29562953 }
2954+ glActiveTexture(GL_TEXTURE0);
2955+
29572956 glDisable(GL_CULL_FACE);
29582957
29592958 glDisableClientState(GL_TEXTURE_COORD_ARRAY);