mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 23:02:07 +00:00
Refactor texture loading code; should fix a crash that started appearing recently.
This commit is contained in:
parent
66cf20ffa9
commit
f0d580d873
22 changed files with 255 additions and 387 deletions
|
@ -45,11 +45,8 @@ void BmpFont::destroy()
|
|||
font.Destroy();
|
||||
loaded = false;
|
||||
}
|
||||
if (overrideTexture)
|
||||
{
|
||||
overrideTexture->removeRef();
|
||||
overrideTexture = 0;
|
||||
}
|
||||
|
||||
overrideTexture = NULL;
|
||||
}
|
||||
|
||||
void BmpFont::load(const std::string &file, float scale, bool loadTexture)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue