fix sw nq

This commit is contained in:
Bill Currie 2001-04-16 20:38:51 +00:00
parent 3e484da3b8
commit c59951b046
3 changed files with 10 additions and 3 deletions

View file

@ -70,6 +70,12 @@ D_Init (void)
r_recursiveaffinetriangles = true;
r_pixbytes = 1;
r_aliasuvscale = 1.0;
vid.surf_cache_size = D_SurfaceCacheForRes;
vid.flush_caches = D_FlushCaches;
vid.init_caches = D_InitCaches;
VID_InitBuffers ();
}

View file

@ -122,6 +122,8 @@ D_InitCaches (void *buffer, int size)
sc_base->owner = NULL;
sc_base->size = sc_size;
d_pzbuffer = vid.zbuffer;
D_ClearCacheGuard ();
}

View file

@ -87,7 +87,6 @@ client_t *host_client; // current client
jmp_buf host_abortserver;
byte *vid_basepal;
byte *host_colormap;
cvar_t *fs_globalcfg;
@ -971,8 +970,8 @@ Host_Init (quakeparms_t *parms)
// color
// to
// black
host_colormap = (byte *) COM_LoadHunkFile ("gfx/colormap.lmp");
if (!host_colormap)
vid_colormap = (byte *) COM_LoadHunkFile ("gfx/colormap.lmp");
if (!vid_colormap)
Sys_Error ("Couldn't load gfx/colormap.lmp");
VID_Init (vid_basepal);