diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vk/graphics_pipeline_2d_solid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vk/graphics_pipeline_2d_solid.cpp b/src/vk/graphics_pipeline_2d_solid.cpp index 380bb65..13800dc 100644 --- a/src/vk/graphics_pipeline_2d_solid.cpp +++ b/src/vk/graphics_pipeline_2d_solid.cpp @@ -305,8 +305,8 @@ GraphicsPipeline2DSolid::draw( // FIXME: I know sorting is expensive, but I need to figure out better what // to do here. - std::sort(view->sprites_to_draw[current_frame].rbegin(), - view->sprites_to_draw[current_frame].rend()); + std::sort(view->sprites_to_draw[current_frame].begin(), + view->sprites_to_draw[current_frame].end()); // Draw sprites for(auto& sprite_to_draw: view->sprites_to_draw[current_frame]) |