Merge pull request #87775 from clayjohn/GLTF-export-ra-rg

Remove workaround in GLTF exporter that double converts ra textures to rg
This commit is contained in:
Rémi Verschelde 2024-01-31 10:57:17 +01:00
commit cb0d450b7d
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 1 deletions

View File

@ -3816,7 +3816,6 @@ Error GLTFDocument::_serialize_materials(Ref<GLTFState> p_state) {
}
img->decompress();
img->convert(Image::FORMAT_RGBA8);
img->convert_ra_rgba8_to_rg();
for (int32_t y = 0; y < img->get_height(); y++) {
for (int32_t x = 0; x < img->get_width(); x++) {
Color c = img->get_pixel(x, y);