Fix Win32 software crash (null surface cache)

This commit is contained in:
Jeff Teunissen 2000-11-02 17:02:59 +00:00
parent 28c972a3fd
commit 31c5c6079c
1 changed files with 4 additions and 3 deletions

View File

@ -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;