Shouldn't there be a __setstate__ method for Texture?