Fix: GPU compositor ignores border region
The GPU compositor does not take the border region into consideration, which means it reads more than it should, leading to corruption. Fix this by taking the border region into account when computing render width and height.
This commit is contained in:
parent
7e66026fa0
commit
4780cd3368
|
@ -210,7 +210,7 @@ class Context : public realtime_compositor::Context {
|
|||
int2 get_render_size() const override
|
||||
{
|
||||
int width, height;
|
||||
BKE_render_resolution(input_data_.render_data, false, &width, &height);
|
||||
BKE_render_resolution(input_data_.render_data, true, &width, &height);
|
||||
return int2(width, height);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue