From 23dc0e4b015f10c8907268b68e2ffd8bea3461b2 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 17 Jan 2005 17:44:54 +0000 Subject: [PATCH] Small anti-console-spam improvement. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@804 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_rmain.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/engine/gl/gl_rmain.c b/engine/gl/gl_rmain.c index 392d4ffba..7e09b22c1 100644 --- a/engine/gl/gl_rmain.c +++ b/engine/gl/gl_rmain.c @@ -1630,13 +1630,18 @@ void GLR_RenderView (void) extern msurface_t *r_alpha_surfaces; double time1 = 0, time2; - if (r_norefresh.value) + if (r_norefresh.value || !glwidth || !glheight) + { + GL_DoSwap(); return; + } if (!(r_refdef.flags & 1)) if (!r_worldentity.model || !cl.worldmodel) - + { + GL_DoSwap(); return; + } // Sys_Error ("R_RenderView: NULL worldmodel"); @@ -1764,12 +1769,6 @@ void GLR_RenderView (void) float vwidth = 1, vheight = 1; float vs, vt; - if (!glwidth || !glheight) - { - Con_Printf("Window too small!!!\n"); - return; - } - // get the powers of 2 for the size of the texture that will hold the scene while (vwidth < glwidth) {