Removed obsolete code in setTexture

This code has no side-effects besides assigning “textureChange”, which
is used nor reset anywhere else.
Merge pull request #1023 from lucbloom/sprite-textureChange-obsolete

Removed obsolete code in setTexture