1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Fix wrong RGBA channel mapping when saving OpenEXR.

(cherry picked from commit 08b89a95d2)
This commit is contained in:
K. S. Ernest (iFire) Lee
2022-01-12 00:20:47 -08:00
committed by Rémi Verschelde
parent f999fe471d
commit 02c596a82c

View File

@@ -171,7 +171,7 @@ Error save_exr(const String &p_path, const Ref<Image> &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);