mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-02 16:32:12 +00:00
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:
parent
480118ef04
commit
d44d83bb70
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue