forgot to disable the stensil buffer for r_volfog

This commit is contained in:
Bill Currie 2000-04-25 03:35:30 +00:00
parent 32b012dda0
commit 98e7670d66

View file

@ -1146,7 +1146,7 @@ else
R_DrawWaterSurfaces ();
if (r_volfog->value || r_fog->value)
glDisable(GL_FOG);
if (r_wateralpha->value<1.0) {
if (r_wateralpha->value<1.0 || r_volfog->value) {
glStencilFunc(GL_EQUAL, 1, 1);
glStencilMask(GL_FALSE);
glDisable(GL_DEPTH_TEST);