mirror of https://github.com/axmolengine/axmol.git
should check validation of _stencil (#16913)
This commit is contained in:
parent
0c06029532
commit
575ed756d1
|
@ -345,6 +345,7 @@ void ClippingNode::setAlphaThreshold(GLfloat alphaThreshold)
|
||||||
if (alphaThreshold == 1 && alphaThreshold != _stencilStateManager->getAlphaThreshold())
|
if (alphaThreshold == 1 && alphaThreshold != _stencilStateManager->getAlphaThreshold())
|
||||||
{
|
{
|
||||||
// should reset program used by _stencil
|
// should reset program used by _stencil
|
||||||
|
if (_stencil)
|
||||||
setProgram(_stencil, _originStencilProgram);
|
setProgram(_stencil, _originStencilProgram);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue