Browse Source

[cocos2dx] Closes #1366, setupGLProgramState incorrectly checked for RegionAttachment.

badlogic 6 years ago
parent
commit
61d2b52868
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-cocos2dx/src/spine/SkeletonRenderer.cpp

+ 1 - 1
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<AttachmentVertices*>(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<AttachmentVertices*>(attachment->getRendererObject())->_texture;
 			} else {