From d5ac4564b09302abfb60375d72bedd8e02c60fed Mon Sep 17 00:00:00 2001 From: clayjohn Date: Tue, 30 Jan 2024 23:22:20 -0800 Subject: [PATCH] Remove workaround in GLTF exporter that double converts ra textures to rg (cherry picked from commit 4f41b9494353adb529af6c062c86361988481e27) --- modules/gltf/gltf_document.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index ee093a1f1b1..00ee387636f 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -3810,7 +3810,6 @@ Error GLTFDocument::_serialize_materials(Ref 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);