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

This commit is contained in:
badlogic 2019-05-31 11:33:21 +02:00
parent 9c499a92f2
commit 61d2b52868

View File

@ -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 {