diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-03 11:13:42 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-03 11:13:42 +0300 |
commit | e8bffa7a50001b7918caf71c09ce2014cf5473e3 (patch) | |
tree | 3aca5bb4ad44963848002062d50b19bfaa69c2e7 /source | |
parent | a96dbe5bca1e5ff8448672f5e81f892335ee83e8 (diff) |
Render Save Buffers: Use proper memory buffer size for a display buffer
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/render_result.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/render_result.c b/source/blender/render/intern/source/render_result.c index 9ee76ba00cb..83875d87e1a 100644 --- a/source/blender/render/intern/source/render_result.c +++ b/source/blender/render/intern/source/render_result.c @@ -642,7 +642,8 @@ RenderResult *render_result_new(Render *re, rcti *partrct, int crop, int savebuf rl->recty = recty; if (rr->do_exr_tile) { - rl->display_buffer = MEM_mapallocN(rectx * recty * sizeof(unsigned int), "Combined display space rgba"); + rl->display_buffer = MEM_mapallocN((size_t)rectx * recty * sizeof(unsigned int), + "Combined display space rgba"); rl->exrhandle = IMB_exr_get_handle(); } |