Skip to content

Commit

Permalink
[ue] Fix shadowed variables on Clang/GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Aug 7, 2024
1 parent b47c739 commit eb2802e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions spine-cpp/spine-cpp/src/spine/Skeleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,9 @@ void Skeleton::getBounds(float &outX, float &outY, float &outWidth,
getBounds(outX, outY, outWidth, outHeight, outVertexBuffer, NULL);
}

static unsigned short quadIndices[] = {0, 1, 2, 2, 3, 0};

void Skeleton::getBounds(float &outX, float &outY, float &outWidth,
float &outHeight, Vector<float> &outVertexBuffer, SkeletonClipping *clipper) {
static unsigned short quadIndices[] = {0, 1, 2, 2, 3, 0};
float minX = FLT_MAX;
float minY = FLT_MAX;
float maxX = -FLT_MAX;
Expand Down
Binary file modified spine-flutter/lib/assets/libspine_flutter.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class UETextureLoader : public TextureLoader {
}
};

UETextureLoader textureLoader;
UETextureLoader _spineUETextureLoader;

Atlas *USpineAtlasAsset::GetAtlas() {
if (!atlas) {
Expand All @@ -113,7 +113,7 @@ Atlas *USpineAtlasAsset::GetAtlas() {
std::string t = TCHAR_TO_UTF8(*rawData);

atlas = new (__FILE__, __LINE__)
Atlas(t.c_str(), strlen(t.c_str()), "", &textureLoader);
Atlas(t.c_str(), strlen(t.c_str()), "", &_spineUETextureLoader);
}
return this->atlas;
}
Expand Down

0 comments on commit eb2802e

Please sign in to comment.