This commit is contained in:
halx99 2020-10-16 18:46:13 +08:00
parent 5bacfcd733
commit 21185a1fc3

View File

@ -201,7 +201,7 @@ void TwoColorTrianglesCommand::updateCommandPipelineDescriptor(cocos2d::backend:
}
}
else {
needsUpdateStateLayout = _programState != nullptr && _programState->getProgramType() != __twoColorProgramState->getProgramType();
needsUpdateStateLayout = _programState != nullptr && _programState->getProgram() != __twoColorProgramState->getProgram();
CC_SAFE_RELEASE(_programState);
_programState = __twoColorProgramState->clone();
}