2
0
Fork 0

Fix wrong RGBA channel mapping when saving OpenEXR.

3.5
K. S. Ernest (iFire) Lee 2022-01-12 00:20:47 +07:00
parent 8f09deae13
commit 08b89a95d2
1 changed files with 1 additions and 1 deletions

@ -173,7 +173,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);