mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
rsx: Remove index expansion for quad strips
This commit is contained in:
parent
fe5828cb47
commit
2e9405db4c
1 changed files with 0 additions and 14 deletions
|
@ -641,8 +641,6 @@ u32 get_index_count(rsx::primitive_type draw_mode, u32 initial_index_count)
|
|||
return (initial_index_count - 2) * 3;
|
||||
case rsx::primitive_type::quads:
|
||||
return (6 * initial_index_count) / 4;
|
||||
case rsx::primitive_type::quad_strip:
|
||||
return (6 * (initial_index_count - 2)) / 2;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
@ -691,18 +689,6 @@ void write_index_array_for_non_indexed_non_native_primitive_to_buffer(char* dst,
|
|||
}
|
||||
return;
|
||||
case rsx::primitive_type::quad_strip:
|
||||
for (unsigned i = 0; i < (count - 2) / 2; i++)
|
||||
{
|
||||
// First triangle
|
||||
typedDst[6 * i] = 2 * i;
|
||||
typedDst[6 * i + 1] = 2 * i + 1;
|
||||
typedDst[6 * i + 2] = 2 * i + 2;
|
||||
// Second triangle
|
||||
typedDst[6 * i + 3] = 2 * i + 2;
|
||||
typedDst[6 * i + 4] = 2 * i + 1;
|
||||
typedDst[6 * i + 5] = 2 * i + 3;
|
||||
}
|
||||
return;
|
||||
case rsx::primitive_type::points:
|
||||
case rsx::primitive_type::lines:
|
||||
case rsx::primitive_type::line_strip:
|
||||
|
|
Loading…
Add table
Reference in a new issue