mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Merge pull request #1322 from knoxHuang/v1.3
should check validation of _stencil
This commit is contained in:
@@ -148,8 +148,10 @@ proto.setStencil = function(stencil){
|
||||
// should reset program used by _stencil
|
||||
proto.resetProgramByStencil = function () {
|
||||
var node = this._node;
|
||||
var program = node._originStencilProgram;
|
||||
setProgram(node._stencil, program);
|
||||
if (node._stencil) {
|
||||
var program = node._originStencilProgram;
|
||||
setProgram(node._stencil, program);
|
||||
}
|
||||
};
|
||||
|
||||
proto._onBeforeVisit = function(ctx){
|
||||
|
||||
Reference in New Issue
Block a user