Skip to content

Commit

Permalink
gameLibs/bvh: simplified code for enumerate() template call
Browse files Browse the repository at this point in the history
  • Loading branch information
NicSavichev committed Dec 5, 2024
1 parent a9bc65d commit ab72e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prog/gameLibs/bvh/bvh_ri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void on_relem_changed(ContextId context_id, const RenderableInstanceLodsR

bool hasBakedImpostor = resource->isBakedImpostor();

for (auto [lodIx, lod] : enumerate(resource->lods))
for (auto [lodIx, lod] : enumerate(make_span_const(resource->lods)))
{
int lastLod = hasBakedImpostor ? resource->lods.size() - 2 : resource->lods.size() - 1;
if (context_id->has(Features::RIBaked) && lodIx < lastLod)
Expand Down

0 comments on commit ab72e05

Please sign in to comment.