diff --git a/src/doomdef.h b/src/doomdef.h
index c1d6d78efd17e90da7444f5ac7e7ca2b72ee987b..533546303899a26503bdb70057ed6ccde2acd912 100644
--- a/src/doomdef.h
+++ b/src/doomdef.h
@@ -620,7 +620,7 @@ extern const char *compdate, *comptime, *comprevision, *compbranch;
 ///      	SRB2CB itself ported this from PrBoom+
 #define NEWCLIP
 
-/// Hardware renderer: OpenGL
+/// OpenGL shaders
 #define GL_SHADERS
 
 /// Handle touching sector specials in P_PlayerAfterThink instead of P_PlayerThink.
diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c
index f8a92ed87a1121fd9598bb80f812eb3ddc3374d2..2a373b68ad70109496e878ba57b11d635da853b9 100644
--- a/src/hardware/r_opengl/r_opengl.c
+++ b/src/hardware/r_opengl/r_opengl.c
@@ -1871,8 +1871,13 @@ static void load_shaders(FSurfaceInfo *Surface, GLRGBAFloat *poly, GLRGBAFloat *
 			pglUseProgram(0);
 	}
 	else
-#endif
 		pglUseProgram(0);
+#else
+	(void)Surface;
+	(void)poly;
+	(void)tint;
+	(void)fade;
+#endif
 }
 
 // -----------------+