1
0
Fork 0
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:
fgenesis 2016-05-09 08:15:41 +02:00
parent 903d222f65
commit 2f0940f1df

View file

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