Fixed a texture conversion problem: sometimes need to produce an intermediate