mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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)) {
|
if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) {
|
||||||
RegionAttachment* attachment = (RegionAttachment*)slot->getAttachment();
|
RegionAttachment* attachment = (RegionAttachment*)slot->getAttachment();
|
||||||
texture = static_cast<AttachmentVertices*>(attachment->getRendererObject())->_texture;
|
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();
|
MeshAttachment* attachment = (MeshAttachment*)slot->getAttachment();
|
||||||
texture = static_cast<AttachmentVertices*>(attachment->getRendererObject())->_texture;
|
texture = static_cast<AttachmentVertices*>(attachment->getRendererObject())->_texture;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user