Skip to content

Commit

Permalink
Fix wrong RGBA channel mapping when saving OpenEXR.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Jan 12, 2022
1 parent 8f09dea commit 08b89a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tinyexr/image_saver_tinyexr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 08b89a9

Please sign in to comment.