mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 13:32:01 +00:00
Fix Win32 software crash (null surface cache)
This commit is contained in:
parent
28c972a3fd
commit
31c5c6079c
1 changed files with 4 additions and 3 deletions
|
@ -303,9 +303,9 @@ VID_AllocBuffers (int width, int height)
|
|||
if (vid_surfcache) {
|
||||
D_FlushCaches ();
|
||||
free (vid_surfcache);
|
||||
}
|
||||
vid_surfcache = temp_sc;
|
||||
temp_sc = NULL;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -2089,7 +2089,8 @@ void VID_ForceMode_f (void)
|
|||
}
|
||||
|
||||
|
||||
void VID_Init (unsigned char *palette)
|
||||
void
|
||||
VID_Init (unsigned char *palette)
|
||||
{
|
||||
int i, bestmatch = 0, bestmatchmetric, t, dr, dg, db;
|
||||
int basenummodes;
|
||||
|
|
Loading…
Reference in a new issue