diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-11-16 19:25:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-11-16 19:25:48 +0300 |
commit | ba6427adfaec0d405386f14fef5728f0114f7589 (patch) | |
tree | 303a245fa7e2474febf1a1b4d42bdb89a8ef3e69 /intern/cycles/integrator/path_trace.cpp | |
parent | bee7a56687283cc3642d625357d8d2b1847b67a1 (diff) | |
parent | b3529ecf0eb5e942267eb168fc078188de193400 (diff) |
Merge branch 'blender-v3.0-release'
Diffstat (limited to 'intern/cycles/integrator/path_trace.cpp')
-rw-r--r-- | intern/cycles/integrator/path_trace.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/integrator/path_trace.cpp b/intern/cycles/integrator/path_trace.cpp index dcbdf07ee67..81e9341af26 100644 --- a/intern/cycles/integrator/path_trace.cpp +++ b/intern/cycles/integrator/path_trace.cpp @@ -296,13 +296,13 @@ static BufferParams scale_buffer_params(const BufferParams ¶ms, int resoluti scaled_params.window_x = params.window_x / resolution_divider; scaled_params.window_y = params.window_y / resolution_divider; - scaled_params.window_width = params.window_width / resolution_divider; - scaled_params.window_height = params.window_height / resolution_divider; + scaled_params.window_width = max(1, params.window_width / resolution_divider); + scaled_params.window_height = max(1, params.window_height / resolution_divider); scaled_params.full_x = params.full_x / resolution_divider; scaled_params.full_y = params.full_y / resolution_divider; - scaled_params.full_width = params.full_width / resolution_divider; - scaled_params.full_height = params.full_height / resolution_divider; + scaled_params.full_width = max(1, params.full_width / resolution_divider); + scaled_params.full_height = max(1, params.full_height / resolution_divider); scaled_params.update_offset_stride(); |