[sfml] Fix rendering code for new renderer object API.

This commit is contained in:
Mario Zechner 2022-10-14 12:09:49 +02:00
parent 649744640c
commit 2ff97a3fe5

View File

@ -123,7 +123,7 @@ namespace spine {
uvs = &regionAttachment->getUVs();
indices = &quadIndices;
indicesCount = 6;
texture = (Texture *) regionAttachment->getRegion()->rendererObject;
texture = (Texture *) ((AtlasRegion*)regionAttachment->getRegion())->page->texture;
} else if (attachment->getRTTI().isExactly(MeshAttachment::rtti)) {
MeshAttachment *mesh = (MeshAttachment *) attachment;
@ -140,7 +140,7 @@ namespace spine {
uvs = &mesh->getUVs();
indices = &mesh->getTriangles();
indicesCount = mesh->getTriangles().size();
texture = (Texture *) ((AtlasRegion *) mesh->getRendererObject())->page->getRendererObject();
texture = (Texture *) ((AtlasRegion*)mesh->getRegion())->page->texture;
} else if (attachment->getRTTI().isExactly(ClippingAttachment::rtti)) {
ClippingAttachment *clip = (ClippingAttachment *) slot.getAttachment();