You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix wrong RGBA channel mapping when saving OpenEXR.
This commit is contained in:
@@ -173,7 +173,7 @@ Error save_exr(const String &p_path, const Ref<Image> &p_img, bool p_grayscale)
|
|||||||
{ 0 }, // R
|
{ 0 }, // R
|
||||||
{ 1, 0 }, // GR
|
{ 1, 0 }, // GR
|
||||||
{ 2, 1, 0 }, // BGR
|
{ 2, 1, 0 }, // BGR
|
||||||
{ 2, 1, 0, 3 } // BGRA
|
{ 3, 2, 1, 0 } // ABGR
|
||||||
};
|
};
|
||||||
|
|
||||||
int channel_count = get_channel_count(format);
|
int channel_count = get_channel_count(format);
|
||||||
|
|||||||
Reference in New Issue
Block a user