From 463e763b9dea3d318821a7a588fe60a7b9f91d21 Mon Sep 17 00:00:00 2001 From: black Date: Wed, 27 Feb 2008 22:11:08 +0000 Subject: [PATCH] Don't try to render something when height or width are zero. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8153 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index d538305f..fae73614 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -3684,7 +3684,7 @@ R_RenderView */ void R_RenderView(void) { - if (!r_refdef.scene.entities/* || !r_refdef.scene.worldmodel*/) + if (!r_refdef.scene.entities || r_refdef.view.width * r_refdef.view.height == 0/* || !r_refdef.scene.worldmodel*/) return; //Host_Error ("R_RenderView: NULL worldmodel"); r_refdef.view.colorscale = r_hdr_scenebrightness.value; -- 2.39.2