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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user