diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-12-07 22:49:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-12-07 22:49:34 +0300 |
commit | 204ae33d755561e68ad3a6193d9a90d39d47d4da (patch) | |
tree | b83e69f4b4deb024e848b2c45a346409779df26b /intern/cycles/integrator/path_trace_work.cpp | |
parent | b81508841639aff7c0bc04accc2be265f554fdce (diff) |
Revert "Fix T93350: Cycles renders shows black during rendering huge resolutions"
This reverts commit 5e37f70307bdacedd0f7da65f8b385bc1426f21d.
It is leading to freezing of the entire desktop for a few seconds when stopping
3D viewport rendering on my Linux / NVIDIA system.
Diffstat (limited to 'intern/cycles/integrator/path_trace_work.cpp')
-rw-r--r-- | intern/cycles/integrator/path_trace_work.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/integrator/path_trace_work.cpp b/intern/cycles/integrator/path_trace_work.cpp index 4ecc7d775ee..b0c40cfe15c 100644 --- a/intern/cycles/integrator/path_trace_work.cpp +++ b/intern/cycles/integrator/path_trace_work.cpp @@ -194,10 +194,10 @@ PassAccessor::Destination PathTraceWork::get_display_destination_template( PassAccessor::Destination destination(film_->get_display_pass()); const int2 display_texture_size = display->get_texture_size(); - const int texture_x = effective_buffer_params_.full_x - effective_big_tile_params_.full_x + - effective_buffer_params_.window_x - effective_big_tile_params_.window_x; - const int texture_y = effective_buffer_params_.full_y - effective_big_tile_params_.full_y + - effective_buffer_params_.window_y - effective_big_tile_params_.window_y; + const int texture_x = effective_buffer_params_.full_x - effective_full_params_.full_x + + effective_buffer_params_.window_x; + const int texture_y = effective_buffer_params_.full_y - effective_full_params_.full_y + + effective_buffer_params_.window_y; destination.offset = texture_y * display_texture_size.x + texture_x; destination.stride = display_texture_size.x; |