mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Clean up TextureSource and related code
This commit is contained in:
parent
0bdd5f294e
commit
b841c23701
5 changed files with 43 additions and 67 deletions
|
@ -64,7 +64,7 @@ MenuTextureSource::~MenuTextureSource()
|
|||
video::ITexture *MenuTextureSource::getTexture(const std::string &name, u32 *id)
|
||||
{
|
||||
if (id)
|
||||
*id = 0;
|
||||
*id = 1;
|
||||
|
||||
if (name.empty())
|
||||
return NULL;
|
||||
|
@ -78,7 +78,6 @@ video::ITexture *MenuTextureSource::getTexture(const std::string &name, u32 *id)
|
|||
if (!image)
|
||||
return NULL;
|
||||
|
||||
image = Align2Npot2(image, m_driver);
|
||||
retval = m_driver->addTexture(name.c_str(), image);
|
||||
image->drop();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue