Fix video background color if the gl1 or gl3 renderer is used.

Both use truecolor and not paletted colors.
This commit is contained in:
Yamagi Burmeister 2018-01-03 21:11:08 +01:00
parent da5d36a7fd
commit 7ae9b38da1
1 changed files with 15 additions and 1 deletions

View File

@ -28,6 +28,8 @@
#include "header/client.h"
#include "../backends/generic/header/input.h"
extern cvar_t *vid_renderer;
cvar_t *cin_force43;
typedef struct
@ -582,7 +584,19 @@ SCR_DrawCinematic(void)
h = viddef.height;
}
if (!vid_renderer)
{
vid_renderer = Cvar_Get("vid_renderer", "gl1", CVAR_ARCHIVE);
}
if (Q_stricmp(vid_renderer->string, "soft") == 0)
{
color = SCR_MinimalColor();
}
else
{
color = 0;
}
if (x > 0)
{