fix the r_wateralpha not working without r_volfog bug. Unfortunatly, this doesn'

t do anything for the r_wateralpha bug that allows cheating (no diff what so eve
r).
This commit is contained in:
Bill Currie 2000-04-24 08:59:09 +00:00
parent bc7c094a33
commit 451b4056a4

View file

@ -1122,7 +1122,19 @@ else
{
R_RenderScene ();
R_DrawViewModel ();
if (r_wateralpha->value<1.0) {
glClear(GL_STENCIL_BUFFER_BIT);
glStencilFunc(GL_ALWAYS, 1, 1);
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
}
R_DrawWaterSurfaces ();
if (r_wateralpha->value<1.0) {
glStencilFunc(GL_EQUAL, 1, 1);
glStencilMask(GL_FALSE);
glDisable(GL_DEPTH_TEST);
}
}
R_PolyBlend ();