Call VID_Init() before IN_Init().

This commit is contained in:
Marcus Sundberg 2000-01-09 02:13:51 +00:00
parent 06e87abc90
commit 89263d5eca

View file

@ -877,8 +877,7 @@ void Host_Init (quakeparms_t *parms)
R_InitTextures (); // needed even for dedicated servers R_InitTextures (); // needed even for dedicated servers
if (cls.state != ca_dedicated) if (cls.state != ca_dedicated) {
{
host_basepal = (byte *)COM_LoadHunkFile ("gfx/palette.lmp"); host_basepal = (byte *)COM_LoadHunkFile ("gfx/palette.lmp");
if (!host_basepal) if (!host_basepal)
Sys_Error ("Couldn't load gfx/palette.lmp"); Sys_Error ("Couldn't load gfx/palette.lmp");
@ -886,8 +885,8 @@ void Host_Init (quakeparms_t *parms)
if (!host_colormap) if (!host_colormap)
Sys_Error ("Couldn't load gfx/colormap.lmp"); Sys_Error ("Couldn't load gfx/colormap.lmp");
IN_Init ();
VID_Init(host_basepal); VID_Init(host_basepal);
IN_Init();
Draw_Init(); Draw_Init();
SCR_Init(); SCR_Init();
R_Init(); R_Init();