mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
rsx: Fix some checks when using inlined array rendering
This commit is contained in:
parent
54ec363e88
commit
2d88e41583
1 changed files with 12 additions and 0 deletions
|
@ -207,11 +207,23 @@ namespace rsx
|
||||||
*/
|
*/
|
||||||
u32 get_elements_count() const
|
u32 get_elements_count() const
|
||||||
{
|
{
|
||||||
|
if (draw_command_ranges.empty())
|
||||||
|
{
|
||||||
|
verify(HERE), command == rsx::draw_command::inlined_array;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return get_range().count;
|
return get_range().count;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 min_index() const
|
u32 min_index() const
|
||||||
{
|
{
|
||||||
|
if (draw_command_ranges.empty())
|
||||||
|
{
|
||||||
|
verify(HERE), command == rsx::draw_command::inlined_array;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return get_range().first;
|
return get_range().first;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue