mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed Rend_SetColor() with m_local_alpha
This commit is contained in:
parent
c442942022
commit
7eedc5fef8
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue