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
|
@ -102,7 +102,6 @@ void UICheckBox::Draw()
|
|||
float y = (m_frame.size.height - height) * 0.5f;
|
||||
if (material)
|
||||
{
|
||||
material->ReregisterMaterial();
|
||||
uii.Rend_DrawPicStretched(x, y, width, height, 0.0f, 0.0f, 1.0f, 1.0f, material->GetMaterial());
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue