From eb70242fd02b76fae4d99be718fbbffd7f5b0cf0 Mon Sep 17 00:00:00 2001
From: Ronald Kinard <furyhunter600@gmail.com>
Date: Mon, 17 Mar 2014 22:37:56 -0500
Subject: [PATCH] Fix -dedicated under sdl

---
 src/sdl/i_video.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c
index fa7d4d5342..71c813646f 100644
--- a/src/sdl/i_video.c
+++ b/src/sdl/i_video.c
@@ -1843,7 +1843,12 @@ void I_StartupGraphics(void)
 	static char SDLNOMOUSE[] = "SDL_NOMOUSE=1";
 	static char SDLVIDEOMID[] = "SDL_VIDEO_CENTERED=center";
 
-	if (graphics_started || dedicated)
+	if (dedicated)
+	{
+		rendermode = render_none;
+		return;
+	}
+	if (graphics_started)
 		return;
 
 	COM_AddCommand ("vid_nummodes", VID_Command_NumModes_f);
-- 
GitLab