]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Don't try to render something when height or width are zero.
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 22:11:08 +0000 (22:11 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 22:11:08 +0000 (22:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8153 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index d538305f90d653c111842c0bbb2f33e31b53a895..fae73614a0947c75eb440a12e82d43d18ac8e192 100644 (file)
@@ -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;