mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
rsx: Use clear() instead of resize(0)
The result is the same but clear [1] has slightly less code than resize [2] and signals better the intent IMHO. [1]fb7fb646fa/libstdc%2B%2B-v3/include/bits/stl_vector.h (L1495)
[2]fb7fb646fa/libstdc%2B%2B-v3/include/bits/stl_vector.h (L934)
This commit is contained in:
parent
f90f68d129
commit
78c7ef3039
5 changed files with 12 additions and 12 deletions
|
@ -1244,7 +1244,7 @@ namespace rsx
|
|||
current_vertex_program.output_mask = rsx::method_registers.vertex_attrib_output_mask();
|
||||
current_vertex_program.skip_vertex_input_check = skip_vertex_inputs;
|
||||
|
||||
current_vertex_program.rsx_vertex_inputs.resize(0);
|
||||
current_vertex_program.rsx_vertex_inputs.clear();
|
||||
current_vertex_program.data.reserve(512 * 4);
|
||||
current_vertex_program.jump_table.clear();
|
||||
current_vertex_program.texture_dimensions = 0;
|
||||
|
@ -2615,7 +2615,7 @@ namespace rsx
|
|||
m_statistics_map[m_statistics_tag_id] = 1;
|
||||
|
||||
verify(HERE), m_pending_writes.front().sink == 0;
|
||||
m_pending_writes.resize(0);
|
||||
m_pending_writes.clear();
|
||||
|
||||
for (auto &query : m_occlusion_query_data)
|
||||
{
|
||||
|
@ -2752,7 +2752,7 @@ namespace rsx
|
|||
if (!has_unclaimed)
|
||||
{
|
||||
verify(HERE), processed == m_pending_writes.size();
|
||||
m_pending_writes.resize(0);
|
||||
m_pending_writes.clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2928,7 +2928,7 @@ namespace rsx
|
|||
}
|
||||
else
|
||||
{
|
||||
m_pending_writes.resize(0);
|
||||
m_pending_writes.clear();
|
||||
}
|
||||
|
||||
ptimer->async_tasks_pending -= processed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue