- fixed: When setting the object color for a shaded decal, the alpha channel must be forced to be 255. The decal's AlphaColor contains the palette index in those bits.

This commit is contained in:
Christoph Oelckers 2014-10-26 15:11:04 +01:00
parent 3c7664a460
commit 3e50db9bf0

View file

@ -305,7 +305,7 @@ void GLWall::DrawDecal(DBaseDecal *decal)
// alpha color only has an effect when using an alpha texture.
if (decal->RenderStyle.Flags & STYLEF_RedIsAlpha)
{
gl_RenderState.SetObjectColor(decal->AlphaColor);
gl_RenderState.SetObjectColor(decal->AlphaColor|0xff000000);
}
gl_SetColor(light, rel, p, a);