Fix clipping plane bug on r_water - a line had been deleted when removing RENDERPATH_...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Apr 2018 19:54:49 +0000 (19:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Apr 2018 19:54:49 +0000 (19:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12408 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 5efd843..0970fdb 100644 (file)
@@ -4545,6 +4545,7 @@ void R_SetupView(qboolean allowwaterclippingplane, int viewfbo, rtexture_t *view
                plane[1] = r_refdef.view.clipplane.normal[1];
                plane[2] = r_refdef.view.clipplane.normal[2];
                plane[3] = -dist;
+               customclipplane = plane;
        }
 
        //rtwidth = viewfbo ? R_TextureWidth(viewdepthtexture ? viewdepthtexture : viewcolortexture) : vid.width;