Skip to content
Snippets Groups Projects
Commit 980bcb47 authored by sphere's avatar sphere
Browse files

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

Fix perfstats failing to compile with NOHW=1

See merge request !1728
parents a57a0985 611054b6
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment