mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-03 17:02: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");
|
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();
|
||||||
|
|
Loading…
Reference in a new issue