]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a crash in levels without water
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Sep 2007 18:19:17 +0000 (18:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Sep 2007 18:19:17 +0000 (18:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7581 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 6dfe474d3a696724b4419f7f8b1b1676e87138b4..5b13ce7b8330331741ed22e395766768c9e30e18 100644 (file)
@@ -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)