Skip to content
Commit 5726aed4 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix saving/loading of exr images with small alpha values

There are several issues possible:

1) The image has zero alpha + non-zero color pixels. We artificially raise
   the alpha value to allow premultiplication.

2) The image has tiny non-zero alpha + non-zero color pixels, but division
   is possible without overflow of color channels. Then we must not change
   anything.

3) The image has tiny non-zero alpha + non-zero color pixels, but division
   is not possible due to a half overflow. In this case we must also raise
   alpha a bit (as in case 1) ) to allow correct rendering of the image.

BUG:301443
parent f979974f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment