Skip to content

Commit

Permalink
Fix assign instead of comparison in image_save_tinyexr.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
madmiraal committed Feb 11, 2020
1 parent 8c73e81 commit 11cd8b8
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 @@ -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];
Expand Down

0 comments on commit 11cd8b8

Please sign in to comment.