rsx: Fix some checks when using inlined array rendering

This commit is contained in:
kd-11 authored and kd-11 committed 2018-11-30 23:51:25 +03:00
1 parent 54ec363e88
commit 2d88e41583
1 file changed
+12
+12
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;
}