mirror of https://github.com/RPCS3/rpcs3.git
rsx: Fix some checks when using inlined array rendering
This commit is contained in:
parent
54ec363e88
commit
2d88e41583
|
@ -207,11 +207,23 @@ namespace rsx
|
|||
*/
|
||||
u32 get_elements_count() const
|
||||
{
|
||||
if (draw_command_ranges.empty())
|
||||
{
|
||||
verify(HERE), command == rsx::draw_command::inlined_array;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return get_range().count;
|
||||
}
|
||||
|
||||
u32 min_index() const
|
||||
{
|
||||
if (draw_command_ranges.empty())
|
||||
{
|
||||
verify(HERE), command == rsx::draw_command::inlined_array;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return get_range().first;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue