mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[cocos2dx] Closes #1366, setupGLProgramState incorrectly checked for RegionAttachment.
This commit is contained in:
parent
9c499a92f2
commit
61d2b52868
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user