summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 15:18:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 15:18:29 +0200
commitca3e00abaefd86a604acc41fbe5cac559b0f1b29 (patch)
treea73a21911c193a123c6e7d5a74d51a667e7a3765 /src
parent755942d4e15dd426473b124850188055529b78be (diff)
b
Diffstat (limited to 'src')
-rw-r--r--src/chunk-scenery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp
index ca888588..2f019076 100644
--- a/src/chunk-scenery.cpp
+++ b/src/chunk-scenery.cpp
@@ -189,7 +189,7 @@ auto chunk::ensure_scenery_mesh(scenery_scratch_buffers buffers) noexcept -> sce
auto index = e->is_dynamic() ? (uint32_t)-1 : j++;
array[i++] = { e.get(), (uint32_t)-1, e->ordinal(), make_topo_sort_data(*e, index) };
}
- topological_sort(array, i);
+ topological_sort(array, i); // todo! do this before upload
return { scenery_mesh, ArrayView<object_draw_order>{array, size}, j };
}