Merge pull request #4 from milasudril/master

Fixed #2. Use vid_renderer as initial value for currentrenderer
This commit is contained in:
Nash Muhandes 2016-08-03 01:09:15 +08:00 committed by GitHub
commit b91d7e0663

View file

@ -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();