diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-17 21:47:17 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-17 21:47:30 +0200 |
| commit | 130bf594d1b73c471591f4b8c79b7280f2fb0df6 (patch) | |
| tree | 6c58fca93477211f03c62babf9e1d54d7d74143c /src | |
| parent | 64da638ee700fba2d51eabc6a2e070adef823a12 (diff) | |
bptr: get rid of <compare>
Diffstat (limited to 'src')
| -rw-r--r-- | src/chunk-render.cpp | 2 | ||||
| -rw-r--r-- | src/chunk-walls.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/chunk-render.cpp b/src/chunk-render.cpp index 529d4f64..0cc88af2 100644 --- a/src/chunk-render.cpp +++ b/src/chunk-render.cpp @@ -54,7 +54,7 @@ auto chunk::ensure_ground_mesh() noexcept -> ground_mesh_tuple std::sort(_ground->indexes.begin(), _ground->indexes.begin() + count, [this](uint8_t a, uint8_t b) { - return _ground->atlases[a] < _ground->atlases[b]; + return _ground->atlases[a].get() < _ground->atlases[b].get(); }); float hack_offset = _coord.z <= 0 ? -16.f : 0.f; // XXX hack diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index fb4b6560..6e7ff531 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -309,7 +309,7 @@ GL::Mesh chunk::make_wall_mesh() [&A = _walls->atlases](const auto& a, const auto& b) { const auto& [av, ai] = a; const auto& [bv, bi] = b; - return A[ai] < A[bi]; + return A[ai].get() < A[bi].get(); }); auto vertex_view = std::as_const(vertexes).prefix(N); |
