From d1ec2e2cacdee38757d77aa59f343c3be1cffd29 Mon Sep 17 00:00:00 2001 From: Dabb Date: Tue, 7 Nov 2000 19:16:43 +0000 Subject: [PATCH] Oops... forgot to add "return false" - did it now. --- source/vid_mgl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/vid_mgl.c b/source/vid_mgl.c index 4f46017..455618d 100644 --- a/source/vid_mgl.c +++ b/source/vid_mgl.c @@ -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;