From d44d83bb701e2bd9724f38ddd805e2499db1e5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Rathsman?= Date: Tue, 2 Aug 2016 17:04:20 +0200 Subject: [PATCH] Fixed #3. The default value of vid_renderer is already set to 1, so we shall use that value when initializing renderer --- src/posix/sdl/hardware.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix/sdl/hardware.cpp b/src/posix/sdl/hardware.cpp index a73cb8d64..c1e8c8988 100644 --- a/src/posix/sdl/hardware.cpp +++ b/src/posix/sdl/hardware.cpp @@ -111,7 +111,7 @@ void I_InitGraphics () val.Bool = !!Args->CheckParm ("-devparm"); ticker.SetGenericRepDefault (val, CVAR_Bool); - //currentrenderer = vid_renderer; + currentrenderer = vid_renderer; if (currentrenderer==1) Video = new SDLGLVideo(0); else Video = new SDLVideo (0); @@ -130,7 +130,7 @@ static void I_DeleteRenderer() void I_CreateRenderer() { - //currentrenderer = vid_renderer; + currentrenderer = vid_renderer; if (Renderer == NULL) { Renderer = gl_CreateInterface();