### Godot version

0810ecaafdbee3ea747219e6ab3a8de5d2216a09

### System information

Windows 11, Nvidia 3000, firefox

### Issue description

Exporting the gltf file is corrupt in blender.

### Steps to reproduce

1. Open project.
2. Export as glb
3. Open in blender
4. Blender display many warnings

![image](https://user-images.githubusercontent.com/32321/216740742-de662c5c-f5c3-44b5-a36e-8ad33defdbba.png)


### Minimal reproduction project

https://cdn.discordapp.com/attachments/598003845657788438/1071249610896580691/Test_Game_Project.zip


roughness_image = img_tex->get_image();
				}
				if (roughness_image->is_compressed()) {
					roughness_image->decompress();
				}
			}
			Ref<Image> metallness_image;
			if (has_metalness) {
				height = metallic_texture->get_height();
				width = metallic_texture->get_width();
				metallness_image = metallic_texture->get_image();
				Ref<ImageTexture> img_tex = metallness_image;
				if (img_tex.is_valid()) {
					metallness_image = img_tex->get_image();
				}
				if (metallness_image->is_compressed()) {
					metallness_image->decompress();
				}
			}
			Ref<Texture2D> albedo_texture = base_material->get_texture(BaseMaterial3D::TEXTURE_ALBEDO);
			if (albedo_texture.is_valid() && albedo_texture->get_image().is_valid()) {
				height = albedo_texture->get_height();
				width = albedo_texture->get_width();
			}
			orm_image->initialize_data(width, height, false, Image::FORMAT_RGBA8);
			if (ao_image.is_valid() && ao_image->get_size() != Vector2(width, height)) {
				ao_image->resize(width, height, Image::INTERPOLATE_LANCZOS);
			}
			if (roughness_image.is_valid() && roughness_image->get_size() != Vector2(width, height)) {
				roughness_image->resize(width, height, Image::INTERPOLATE_LANCZOS);