1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 12:31:45 +01:00

rsx: Fix use-after-modify condition when inserting a draw command out of order

- Fixes barrier->range rebase after the insert
This commit is contained in:
kd-11 2019-03-21 12:48:00 +03:00 committed by kd-11
parent d731c07ade
commit 3a4e3fa53a

View File

@ -95,10 +95,7 @@ namespace rsx
void insert_draw_command(u32 index, const draw_range_t& range)
{
auto range_It = draw_command_ranges.begin();
while (index--)
{
++range_It;
}
std::advance(range_It, index);
draw_command_ranges.insert(range_It, range);