Merge branch 'fix-nohw-perfstats-next' into 'next'

Fix perfstats failing to compile with NOHW=1

See merge request STJr/SRB2!1728
This commit is contained in:
sphere 2022-03-04 09:49:15 +00:00
commit 980bcb4775

View file

@ -228,10 +228,13 @@ static boolean PS_IsLevelActive(void)
// Is the row valid in the current context?
static boolean PS_IsRowValid(perfstatrow_t *row)
{
return !((row->flags & PS_LEVEL && !PS_IsLevelActive()) ||
(row->flags & PS_SW && rendermode != render_soft) ||
(row->flags & PS_HW && rendermode != render_opengl) ||
(row->flags & PS_BATCHING && !cv_glbatching.value));
return !((row->flags & PS_LEVEL && !PS_IsLevelActive())
|| (row->flags & PS_SW && rendermode != render_soft)
|| (row->flags & PS_HW && rendermode != render_opengl)
#ifdef HWRENDER
|| (row->flags & PS_BATCHING && !cv_glbatching.value)
#endif
);
}
// Should the row be visible on the screen?