diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-05 13:02:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-05 13:04:42 +0300 |
commit | d0818dbae1ccd81d3138faa423bd134a6e11f91f (patch) | |
tree | 95644a05127871eeed392db619c7ea4b281d9d3f /source/blender/blenkernel/intern/image.c | |
parent | dd73d9c54e90187735997a52b728b5fd64987129 (diff) |
Optimize Blank and Color Grid generated images
Avoid unnecessary pixels linearization gives nice speedup.
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index d5f9a2dac3e..d4551fd0b2c 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -842,13 +842,6 @@ static ImBuf *add_ibuf_size(unsigned int width, unsigned int height, const char break; } - if (rect_float) { - /* both byte and float buffers are filling in sRGB space, need to linearize float buffer after BKE_image_buf_fill* functions */ - - IMB_buffer_float_from_float(rect_float, rect_float, ibuf->channels, IB_PROFILE_LINEAR_RGB, IB_PROFILE_SRGB, - true, ibuf->x, ibuf->y, ibuf->x, ibuf->x); - } - return ibuf; } |