Fixed a texture reshape and merge bug.