mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-04-19 13:02:32 +00:00
Oops... forgot to add "return false" - did it now.
This commit is contained in:
parent
b7ea0dcf7b
commit
d1ec2e2cac
1 changed files with 2 additions and 0 deletions
|
@ -297,6 +297,7 @@ VID_AllocBuffers (int width, int height)
|
|||
if (!d_pzbuffer) {
|
||||
free (vid.buffer);
|
||||
Sys_Error ("Not enough memory for video mode\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Allocate the new surface cache; free the z-buffer if we fail
|
||||
|
@ -305,6 +306,7 @@ VID_AllocBuffers (int width, int height)
|
|||
free (d_pzbuffer);
|
||||
d_pzbuffer = NULL;
|
||||
Sys_Error ("Not enough memory for video mode\n");
|
||||
return false;
|
||||
}
|
||||
vid_surfcachesize = cachesize;
|
||||
|
||||
|
|
Loading…
Reference in a new issue