should check validation of _stencil (#16913)

This commit is contained in:
minggo 2016-11-29 10:46:20 +08:00 committed by GitHub
parent 0c06029532
commit 575ed756d1
1 changed files with 2 additions and 1 deletions

View File

@ -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