浏览代码

Fix wrong RGBA channel mapping when saving OpenEXR.

K. S. Ernest (iFire) Lee 3 年之前
父节点
当前提交
08b89a95d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/tinyexr/image_saver_tinyexr.cpp

+ 1 - 1
modules/tinyexr/image_saver_tinyexr.cpp

@@ -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);