summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-06-25 21:47:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-06-25 21:47:12 +0100
commit319257b0c8094acf16645701fb9a8158f5d91b40 (patch)
treee2eb078b629a90e31ca32084e2c82bf76c7fe7a6
parentCreate a v3.3 context and v3.3 glad library (diff)
downloadilt-319257b0c8094acf16645701fb9a8158f5d91b40.tar.bz2
ilt-319257b0c8094acf16645701fb9a8158f5d91b40.tar.xz
ilt-319257b0c8094acf16645701fb9a8158f5d91b40.zip
Un-const to allow move, no nvro here
-rw-r--r--assetFactory/texturePacker.cpp2
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;
}