halx99 4 жил өмнө
parent
commit
21185a1fc3

+ 1 - 1
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();
     }