1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0025822: Visualization, TKOpenGl - front material should be used instead of back material within distinguish mode turned off

add test case v3d/glsl/distinguish_off
This commit is contained in:
kgv
2015-02-12 15:49:22 +03:00
committed by bugmaster
parent 42b96b07b5
commit 95b2678c73
2 changed files with 41 additions and 1 deletions

View File

@@ -843,7 +843,9 @@ static void PushAspectFace (const Handle(OpenGl_Context)& theCtx,
continue;
}
aParams.Init (anIndex == 0 ? theAspect->IntFront() : theAspect->IntBack());
aParams.Init (anIndex == 0 || theAspect->DistinguishingMode() != TOn
? theAspect->IntFront()
: theAspect->IntBack());
theProgram->SetUniform (theCtx, aLoc, OpenGl_Material::NbOfVec4(),
aParams.Packed());
}