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:
smallmodel 2024-07-24 21:10:46 +02:00
parent c093122764
commit 016e062fef
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
12 changed files with 8 additions and 74 deletions

View file

@ -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,