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:
Omar Emara 2024-02-15 12:56:16 +02:00
parent 7e66026fa0
commit 4780cd3368
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}