From 21185a1fc3eeceb89c78caab88e05a9215b0a36f Mon Sep 17 00:00:00 2001 From: halx99 Date: Fri, 16 Oct 2020 18:46:13 +0800 Subject: [PATCH] fix --- spine-cocos2dx/src/spine/v4/SkeletonTwoColorBatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-cocos2dx/src/spine/v4/SkeletonTwoColorBatch.cpp b/spine-cocos2dx/src/spine/v4/SkeletonTwoColorBatch.cpp index 63a32d0d8..780274013 100644 --- a/spine-cocos2dx/src/spine/v4/SkeletonTwoColorBatch.cpp +++ b/spine-cocos2dx/src/spine/v4/SkeletonTwoColorBatch.cpp @@ -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(); }