mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
R_DrawSequentialPoly: don't use function calls from CLAMP() macro.
This commit is contained in:
parent
35b2d77661
commit
16d813859f
1 changed files with 5 additions and 2 deletions
|
@ -234,8 +234,11 @@ void R_DrawSequentialPoly (msurface_t *s)
|
|||
if (s->flags & SURF_DRAWTURB)
|
||||
{
|
||||
if (currententity->alpha == ENTALPHA_DEFAULT)
|
||||
entalpha = CLAMP(0.0, GL_WaterAlphaForSurface(s), 1.0);
|
||||
|
||||
{
|
||||
entalpha = GL_WaterAlphaForSurface(s);
|
||||
if (entalpha > 1.0f) entalpha = 1.0f;
|
||||
else if (entalpha < 0.0f) entalpha = 0.0f;
|
||||
}
|
||||
if (entalpha < 1)
|
||||
{
|
||||
glDepthMask(GL_FALSE);
|
||||
|
|
Loading…
Reference in a new issue