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