From 61d2b52868af41fcc9255fab5f1d2db79aa42af7 Mon Sep 17 00:00:00 2001 From: badlogic Date: Fri, 31 May 2019 11:33:21 +0200 Subject: [PATCH] [cocos2dx] Closes #1366, setupGLProgramState incorrectly checked for RegionAttachment. --- spine-cocos2dx/src/spine/SkeletonRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp b/spine-cocos2dx/src/spine/SkeletonRenderer.cpp index 28c009b2b..fa47900b8 100644 --- a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp +++ b/spine-cocos2dx/src/spine/SkeletonRenderer.cpp @@ -120,7 +120,7 @@ namespace spine { if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) { RegionAttachment* attachment = (RegionAttachment*)slot->getAttachment(); texture = static_cast(attachment->getRendererObject())->_texture; - } else if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) { + } else if (slot->getAttachment()->getRTTI().isExactly(MeshAttachment::rtti)) { MeshAttachment* attachment = (MeshAttachment*)slot->getAttachment(); texture = static_cast(attachment->getRendererObject())->_texture; } else {