From 08b89a95d2dce9ed663e443c33080f685c37f273 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Wed, 12 Jan 2022 00:20:47 -0800 Subject: [PATCH] Fix wrong RGBA channel mapping when saving OpenEXR. --- modules/tinyexr/image_saver_tinyexr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tinyexr/image_saver_tinyexr.cpp b/modules/tinyexr/image_saver_tinyexr.cpp index 3fcc4ddfc647..497676773df9 100644 --- a/modules/tinyexr/image_saver_tinyexr.cpp +++ b/modules/tinyexr/image_saver_tinyexr.cpp @@ -173,7 +173,7 @@ Error save_exr(const String &p_path, const Ref &p_img, bool p_grayscale) { 0 }, // R { 1, 0 }, // GR { 2, 1, 0 }, // BGR - { 2, 1, 0, 3 } // BGRA + { 3, 2, 1, 0 } // ABGR }; int channel_count = get_channel_count(format);