mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
- 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:
parent
3c7664a460
commit
3e50db9bf0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue