rsx: Fix vertex arrays fetch with inlined draws

This commit is contained in:
eladash 2018-09-24 10:07:46 +03:00 committed by kd-11
parent e8474145a5
commit e0a676a3fe

View File

@ -1784,7 +1784,10 @@ namespace rsx
for (u8 index = 0; index < rsx::limits::vertex_count; ++index)
{
const u32 mask = (1u << index);
// Check if vertex stream is enabled
if (!(input_mask & (1 << index)))
continue;
auto &vinfo = state.vertex_arrays_info[index];
if (vinfo.size() > 0)
@ -1806,8 +1809,8 @@ namespace rsx
for (u8 index = 0; index < rsx::limits::vertex_count; ++index)
{
const bool enabled = !!(input_mask & (1 << index));
if (!enabled)
// Check if vertex stream is enabled
if (!(input_mask & (1 << index)))
continue;
//Check for interleaving