mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
fix sw nq
This commit is contained in:
parent
3e484da3b8
commit
c59951b046
3 changed files with 10 additions and 3 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue