From: havoc Date: Mon, 24 Sep 2007 18:19:17 +0000 (+0000) Subject: fix a crash in levels without water X-Git-Tag: xonotic-v0.1.0preview~2894 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7b94f34226831dfdf301345c62975c3d62fe7792;p=xonotic%2Fdarkplaces.git fix a crash in levels without water git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7581 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 6dfe474d..5b13ce7b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -3067,7 +3067,7 @@ void R_RenderScene(qboolean addwaterplanes) if (r_timereport_active) R_TimeReport("watervisibility"); - if (cl.csqc_vidvars.drawworld && r_refdef.worldmodel && r_refdef.worldmodel->Draw) + if (cl.csqc_vidvars.drawworld && r_refdef.worldmodel && r_refdef.worldmodel->DrawAddWaterPlanes) { r_refdef.worldmodel->DrawAddWaterPlanes(r_refdef.worldentity); if (r_timereport_active)