mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-19 16:01:35 +00:00
Merge branch 'precip-bad-access' into 'next'
Fix potential crash with precipitation in OpenGL See merge request STJr/SRB2!1249
This commit is contained in:
commit
11bb835a45
1 changed files with 1 additions and 6 deletions
|
@ -4204,12 +4204,7 @@ static inline void HWR_DrawPrecipitationSprite(gl_vissprite_t *spr)
|
||||||
HWR_Lighting(&Surf, lightlevel, colormap);
|
HWR_Lighting(&Surf, lightlevel, colormap);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spr->mobj->flags2 & MF2_SHADOW)
|
if (spr->mobj->frame & FF_TRANSMASK)
|
||||||
{
|
|
||||||
Surf.PolyColor.s.alpha = 0x40;
|
|
||||||
blend = PF_Translucent;
|
|
||||||
}
|
|
||||||
else if (spr->mobj->frame & FF_TRANSMASK)
|
|
||||||
blend = HWR_TranstableToAlpha((spr->mobj->frame & FF_TRANSMASK)>>FF_TRANSSHIFT, &Surf);
|
blend = HWR_TranstableToAlpha((spr->mobj->frame & FF_TRANSMASK)>>FF_TRANSSHIFT, &Surf);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue