From 130bf594d1b73c471591f4b8c79b7280f2fb0df6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 17 Jul 2024 21:47:17 +0200 Subject: bptr: get rid of --- src/chunk-render.cpp | 2 +- src/chunk-walls.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3