mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0030570: Visualization, TKOpenGl - OpenGl_AspectFace ignores texture revision on recompute
Added revision check to one more branch within OpenGl_AspectsTextureSet::build().
This commit is contained in:
parent
5716d13b43
commit
31fe1f8ec4
@ -197,6 +197,14 @@ void OpenGl_AspectsTextureSet::build (const Handle(OpenGl_Context)& theCtx,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (aTexture->Revision() != aResource->Revision())
|
||||
{
|
||||
if (Handle(Image_PixMap) anImage = aTexture->GetImage())
|
||||
{
|
||||
aResource->Init (theCtx, *anImage.operator->(), aTexture->Type());
|
||||
aResource->SetRevision (aTexture->Revision());
|
||||
}
|
||||
}
|
||||
aResource->Sampler()->SetParameters (aTexture->GetParams());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user