Texture: Improved error messages.