Legacy GL: models support TC_BLINK

This commit is contained in:
James R 2024-03-25 04:03:27 -07:00
parent fa5e8a5537
commit 30b3199e28

View file

@ -830,6 +830,9 @@ static void HWR_CreateBlendedTexture(patch_t *gpatch, patch_t *blendgpatch, GLMi
if (translen > 0)
colorbrightnesses[translen] = colorbrightnesses[translen-1];
if (skinnum == TC_BLINK)
blendcolor = V_GetColor(skincolors[color].ramp[3]);
while (size--)
{
if (skinnum == TC_HITLAG)
@ -860,6 +863,11 @@ static void HWR_CreateBlendedTexture(patch_t *gpatch, patch_t *blendgpatch, GLMi
cur->s.red = cur->s.green = cur->s.blue = 255;
cur->s.alpha = image->s.alpha;
}
else if (skinnum == TC_BLINK)
{
*cur = blendcolor;
cur->s.alpha = image->s.alpha;
}
else
{
// Everything below requires a blend image