rsx: Fix some checks when using inlined array rendering

This commit is contained in:
kd-11 2018-10-28 15:21:17 +03:00 committed by kd-11
parent 54ec363e88
commit 2d88e41583
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}