1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-29 00:05:50 +00:00

Fix yet another oopsie RenderObject::setTexture()

Didn't apply empty ("") texture when another texture was already set.
This commit is contained in:
fgenesis 2016-05-09 08:15:41 +02:00
parent 6971e7898f
commit 96206dd82a

View file

@ -1363,7 +1363,10 @@ bool RenderObject::setTexture(const std::string &n)
stringToLowerUserData(name);
if (name.empty())
{
setTexturePointer(NULL);
return false;
}
if(texture && name == texture->name)
return true; // no texture change