mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix UIReggedMaterial::ReregisterMaterial and UIReggedMaterial::GetMaterial
ReregisterMaterial() must register the material if it was registered before, and GetMaterial() must register the material if it hasn't been registered and return it
This commit is contained in:
parent
c093122764
commit
016e062fef
12 changed files with 8 additions and 74 deletions
|
@ -108,8 +108,6 @@ void UIList::Draw
|
|||
m_border_color,
|
||||
m_local_alpha);
|
||||
|
||||
m_prev_arrow->ReregisterMaterial();
|
||||
|
||||
float height = m_frame.size.height - 4.0;
|
||||
float width = m_arrow_width - 4.0;
|
||||
uii.Rend_DrawPicStretched(
|
||||
|
@ -135,8 +133,6 @@ void UIList::Draw
|
|||
m_border_color,
|
||||
m_local_alpha);
|
||||
|
||||
m_next_arrow->ReregisterMaterial();
|
||||
|
||||
uii.Rend_DrawPicStretched(
|
||||
x + 2.0f,
|
||||
y + 2.0f,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue