Fixed Rend_SetColor() with m_local_alpha

This commit is contained in:
smallmodel 2023-10-03 01:51:31 +02:00
parent c442942022
commit 7eedc5fef8
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -2446,7 +2446,11 @@ void UIWidget::Display
if( m_material )
{
uii.Rend_SetColor( m_foreground_color );
col[0] = m_foreground_color.r;
col[1] = m_foreground_color.g;
col[2] = m_foreground_color.b;
col[3] = m_foreground_color.a * m_local_alpha;
uii.Rend_SetColor( col );
m_material->ReregisterMaterial();