#3195 Grid Box : Enable depth test for all grid box lines

The text labels are always visible, also through geometry. The line closest to label text was set to no depth test, probably to match the text visibility. This is changed by this commit, and the top line will be hidden by reservoir geometry.

Introduced by  https://github.com/OPM/ResInsight/issues/266
This commit is contained in:
Magne Sjaastad
2018-08-10 13:18:16 +02:00
parent e21fe9b706
commit 25ac317639

View File

@@ -628,10 +628,6 @@ void RivGridBoxGenerator::createLegend(EdgeType edge, cvf::Collection<cvf::Part>
caf::MeshEffectGenerator effGen(m_gridLegendColor);
eff = effGen.generateUnCachedEffect();
cvf::ref<cvf::RenderStateDepth> depth = new cvf::RenderStateDepth;
depth->enableDepthTest(false);
eff->setRenderState(depth.p());
part->setPriority(RivPartPriority::PartType::Text);
part->setEffect(eff.p());