diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-25 21:47:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-25 21:47:12 +0100 |
commit | 319257b0c8094acf16645701fb9a8158f5d91b40 (patch) | |
tree | e2eb078b629a90e31ca32084e2c82bf76c7fe7a6 /assetFactory/texturePacker.cpp | |
parent | Create a v3.3 context and v3.3 glad library (diff) | |
download | ilt-319257b0c8094acf16645701fb9a8158f5d91b40.tar.bz2 ilt-319257b0c8094acf16645701fb9a8158f5d91b40.tar.xz ilt-319257b0c8094acf16645701fb9a8158f5d91b40.zip |
Un-const to allow move, no nvro here
Diffstat (limited to 'assetFactory/texturePacker.cpp')
-rw-r--r-- | assetFactory/texturePacker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assetFactory/texturePacker.cpp b/assetFactory/texturePacker.cpp index 0d0fdb6..64b2131 100644 --- a/assetFactory/texturePacker.cpp +++ b/assetFactory/texturePacker.cpp @@ -53,7 +53,7 @@ TexturePacker::pack(Size size) const } } else { - const auto x = pack({size.x * 2, size.y}), y = pack({size.x, size.y * 2}); + auto x = pack({size.x * 2, size.y}), y = pack({size.x, size.y * 2}); if (!x.first.empty() && (y.first.empty() || area(x.second) < area(y.second))) { return x; } |