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:
parent
d731c07ade
commit
3a4e3fa53a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user