mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-21 11:01:12 +00:00
forgot to disable the stensil buffer for r_volfog
This commit is contained in:
parent
32b012dda0
commit
98e7670d66
1 changed files with 1 additions and 1 deletions
|
@ -1146,7 +1146,7 @@ else
|
||||||
R_DrawWaterSurfaces ();
|
R_DrawWaterSurfaces ();
|
||||||
if (r_volfog->value || r_fog->value)
|
if (r_volfog->value || r_fog->value)
|
||||||
glDisable(GL_FOG);
|
glDisable(GL_FOG);
|
||||||
if (r_wateralpha->value<1.0) {
|
if (r_wateralpha->value<1.0 || r_volfog->value) {
|
||||||
glStencilFunc(GL_EQUAL, 1, 1);
|
glStencilFunc(GL_EQUAL, 1, 1);
|
||||||
glStencilMask(GL_FALSE);
|
glStencilMask(GL_FALSE);
|
||||||
glDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
|
|
Loading…
Reference in a new issue