mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0023630: Incorrect NULL check in OpenGl_Workspace::EnableTexture()
This commit is contained in:
parent
305cc3f88a
commit
bca1d6e249
@ -408,11 +408,11 @@ Handle(OpenGl_Texture) OpenGl_Workspace::EnableTexture (const Handle(OpenGl_Text
|
|||||||
return DisableTexture();
|
return DisableTexture();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myTextureBound.IsNull() && myTextureBound == theTexture)
|
if (myTextureBound == theTexture
|
||||||
|
&& (theParams.IsNull() || theParams == theTexture->GetParams()))
|
||||||
{
|
{
|
||||||
Handle(OpenGl_Texture) aPrevTexture = myTextureBound;
|
// already bound
|
||||||
myTextureBound = theTexture;
|
return myTextureBound;
|
||||||
return aPrevTexture;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle(OpenGl_Texture) aPrevTexture = DisableTexture();
|
Handle(OpenGl_Texture) aPrevTexture = DisableTexture();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user