Fixed #3. The default value of vid_renderer is already set to 1, so we shall use that value when initializing renderer

This commit is contained in:
Torbjörn Rathsman 2016-08-02 17:04:20 +02:00
parent 480118ef04
commit d44d83bb70

View file

@ -111,7 +111,7 @@ void I_InitGraphics ()
val.Bool = !!Args->CheckParm ("-devparm"); val.Bool = !!Args->CheckParm ("-devparm");
ticker.SetGenericRepDefault (val, CVAR_Bool); ticker.SetGenericRepDefault (val, CVAR_Bool);
//currentrenderer = vid_renderer; currentrenderer = vid_renderer;
if (currentrenderer==1) Video = new SDLGLVideo(0); if (currentrenderer==1) Video = new SDLGLVideo(0);
else Video = new SDLVideo (0); else Video = new SDLVideo (0);
@ -130,7 +130,7 @@ static void I_DeleteRenderer()
void I_CreateRenderer() void I_CreateRenderer()
{ {
//currentrenderer = vid_renderer; currentrenderer = vid_renderer;
if (Renderer == NULL) if (Renderer == NULL)
{ {
Renderer = gl_CreateInterface(); Renderer = gl_CreateInterface();