mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
Merge pull request #417 from knoxHuang/v1.3
should check validation of _stencil
This commit is contained in:
@@ -336,7 +336,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user