From e593610862b2f22e72083c0b92c555b6b87ef3dc Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Mon, 31 Aug 2020 16:09:41 -0700
Subject: [PATCH] Fix NOHW compiling

---
 src/d_main.c      | 2 ++
 src/sdl/i_video.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/d_main.c b/src/d_main.c
index 96167ac0bb..21b10de0a1 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -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
 			{
diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c
index 01194a02fa..5c5b6119c6 100644
--- a/src/sdl/i_video.c
+++ b/src/sdl/i_video.c
@@ -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.
 	{
-- 
GitLab