- compare against the thing renderstyle since the local copy has been modified

This commit is contained in:
Magnus Norddahl 2018-12-03 11:10:40 +01:00
parent 4604c9379c
commit 1e30bc72fe

View file

@ -1029,7 +1029,7 @@ void GLSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
RenderStyle.DestAlpha = STYLEALPHA_InvSrc;
}
}
if ((gltexture && gltexture->tex->GetTranslucency()) || (RenderStyle.Flags & STYLEF_RedIsAlpha) || (modelframe && RenderStyle != DefaultRenderStyle()))
if ((gltexture && gltexture->tex->GetTranslucency()) || (RenderStyle.Flags & STYLEF_RedIsAlpha) || (modelframe && thing->RenderStyle != DefaultRenderStyle()))
{
if (hw_styleflags == STYLEHW_Solid)
{