summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-11 21:34:48 +0100
committerGitHub <noreply@github.com>2020-02-11 21:34:48 +0100
commit2d637e38106556f44c2ed251075ef6bcfecad7c7 (patch)
tree28ba97a874ba694dfc421a36e3f376afd09ee458
parent6638401d5d7d9715c455953ac111a33ab6d1c47f (diff)
parent11cd8b8e4afdbd42f82459c48c9f6fd604ea1455 (diff)
Merge pull request #36106 from madmiraal/fix-36097
Fix assign instead of comparison in image_save_tinyexr.cpp.
-rw-r--r--modules/tinyexr/image_saver_tinyexr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tinyexr/image_saver_tinyexr.cpp b/modules/tinyexr/image_saver_tinyexr.cpp
index ff97d4b85d..a0c01f7e65 100644
--- a/modules/tinyexr/image_saver_tinyexr.cpp
+++ b/modules/tinyexr/image_saver_tinyexr.cpp
@@ -182,7 +182,7 @@ Error save_exr(const String &p_path, const Ref<Image> &p_img, bool p_grayscale)
int target_pixel_type_size = get_pixel_type_size(target_pixel_type);
ERR_FAIL_COND_V(target_pixel_type_size < 0, ERR_UNAVAILABLE);
SrcPixelType src_pixel_type = get_source_pixel_type(format);
- ERR_FAIL_COND_V(src_pixel_type = SRC_UNSUPPORTED, ERR_UNAVAILABLE);
+ ERR_FAIL_COND_V(src_pixel_type == SRC_UNSUPPORTED, ERR_UNAVAILABLE);
const int pixel_count = p_img->get_width() * p_img->get_height();
const int *channel_mapping = channel_mappings[channel_count - 1];