mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
fix
This commit is contained in:
parent
5bacfcd733
commit
21185a1fc3
@ -201,7 +201,7 @@ void TwoColorTrianglesCommand::updateCommandPipelineDescriptor(cocos2d::backend:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
needsUpdateStateLayout = _programState != nullptr && _programState->getProgramType() != __twoColorProgramState->getProgramType();
|
needsUpdateStateLayout = _programState != nullptr && _programState->getProgram() != __twoColorProgramState->getProgram();
|
||||||
CC_SAFE_RELEASE(_programState);
|
CC_SAFE_RELEASE(_programState);
|
||||||
_programState = __twoColorProgramState->clone();
|
_programState = __twoColorProgramState->clone();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user