From 02c596a82cb3109f7cb5efffd08b9c1b16f8bbe4 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. (cherry picked from commit 08b89a95d2dce9ed663e443c33080f685c37f273) --- 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 40dbb660085..c98be744ae5 100644 --- a/modules/tinyexr/image_saver_tinyexr.cpp +++ b/modules/tinyexr/image_saver_tinyexr.cpp @@ -171,7 +171,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);