Skip to content

Commit

Permalink
[sdl]Fix getting MeshAttachment's texture error. (EsotericSoftware#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinxiandiqi authored Jan 31, 2023
1 parent 7c05b59 commit b9bf764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-sdl/src/spine-sdl-cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void SkeletonDrawable::draw(SDL_Renderer *renderer) {

worldVertices.setSize(mesh->getWorldVerticesLength(), 0);
mesh->computeWorldVertices(slot, 0, mesh->getWorldVerticesLength(), worldVertices.buffer(), 0, 2);
texture = (SDL_Texture *) ((AtlasRegion *) mesh->getRendererObject())->page->getRendererObject();
texture = (SDL_Texture *) mesh->getRegion()->rendererObject;
verticesCount = mesh->getWorldVerticesLength() >> 1;
uvs = &mesh->getUVs();
indices = &mesh->getTriangles();
Expand Down

0 comments on commit b9bf764

Please sign in to comment.