mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Fix NOHW compiling
This commit is contained in:
parent
6c2370f894
commit
e593610862
2 changed files with 3 additions and 0 deletions
|
@ -629,6 +629,7 @@ static void D_Display(void)
|
|||
V_DrawThinString(80, 40, V_MONOSPACE | V_BLUEMAP, s);
|
||||
if (rendermode == render_opengl) // OpenGL specific stats
|
||||
{
|
||||
#ifdef HWRENDER
|
||||
snprintf(s, sizeof s - 1, "nsrt %d", rs_hw_nodesorttime / divisor);
|
||||
V_DrawThinString(30, 40, V_MONOSPACE | V_YELLOWMAP, s);
|
||||
snprintf(s, sizeof s - 1, "ndrw %d", rs_hw_nodedrawtime / divisor);
|
||||
|
@ -661,6 +662,7 @@ static void D_Display(void)
|
|||
snprintf(s, sizeof s - 1, "ncol %d", rs_hw_numcolors);
|
||||
V_DrawThinString(185, 30, V_MONOSPACE | V_PURPLEMAP, s);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else // software specific stats
|
||||
{
|
||||
|
|
|
@ -1478,6 +1478,7 @@ static SDL_bool Impl_CreateContext(void)
|
|||
|
||||
void VID_CheckGLLoaded(rendermode_t oldrender)
|
||||
{
|
||||
(void)oldrender;
|
||||
#ifdef HWRENDER
|
||||
if (vid_opengl_state == -1) // Well, it didn't work the first time anyway.
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue