Skip to content

Commit

Permalink
fixed particles not rendering when there's nothing else in scene
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Jun 15, 2024
1 parent 2c44ad7 commit 4058c23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/renderer/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2600,12 +2600,14 @@ struct PipelineImpl final : Pipeline
if (view_ptr->renderables) {
pipeline->createSortKeys(*view_ptr);
view_ptr->renderables->free(pipeline->m_renderer.getEngine().getPageAllocator());
if (!view_ptr->sorter.keys.empty()) {
pipeline->radixSort(view_ptr->sorter.keys.begin(), view_ptr->sorter.values.begin(), view_ptr->sorter.keys.size());
pipeline->createCommands(*view_ptr);
}
}
view_ptr->sorter.pack();

if (!view_ptr->sorter.keys.empty()) {
pipeline->radixSort(view_ptr->sorter.keys.begin(), view_ptr->sorter.values.begin(), view_ptr->sorter.keys.size());
pipeline->createCommands(*view_ptr);
}

jobs::setGreen(&view_ptr->ready);
});

Expand Down Expand Up @@ -3705,8 +3707,6 @@ struct PipelineImpl final : Pipeline
}
}
});

view.sorter.pack();
}

struct Histogram {
Expand Down

0 comments on commit 4058c23

Please sign in to comment.