Skip to content
Snippets Groups Projects
Commit 611054b6 authored by Hannu Hanhi's avatar Hannu Hanhi
Browse files

Fix perfstats failing to compile with NOHW=1

parent 93512ae9
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