mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-04 02:24:00 +00:00
Fix yet another oopsie RenderObject::setTexture()
Didn't apply empty ("") texture when another texture was already set.
This commit is contained in:
parent
903d222f65
commit
2f0940f1df
1 changed files with 3 additions and 0 deletions
|
@ -1228,7 +1228,10 @@ bool RenderObject::setTexture(const std::string &n)
|
||||||
stringToLowerUserData(name);
|
stringToLowerUserData(name);
|
||||||
|
|
||||||
if (name.empty())
|
if (name.empty())
|
||||||
|
{
|
||||||
|
setTexturePointer(NULL);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(texture && texture->getLoadResult() == TEX_SUCCESS && name == texture->name)
|
if(texture && texture->getLoadResult() == TEX_SUCCESS && name == texture->name)
|
||||||
return true; // no texture change
|
return true; // no texture change
|
||||||
|
|
Loading…
Add table
Reference in a new issue