mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
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:
commit
980bcb4775
1 changed files with 7 additions and 4 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue