Fix a case with non-float input textures.