fix handling of textures with a base internal format that does not have all four...