From 2ae0f1e70be543b37f426dc1b7d8a44b05301faf Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 9 Mar 2015 12:45:01 +0500 Subject: Fix T43908: Mask render bug, one pixel black line This was a regression caused by attempts to fix T42844 and there were some red-herrings which lead me to the wrong way to fix it. It's some deeper issue than just interpolation offset, it's mainly how the node resolution is being mapped to each other. It could be actually a part of canvas awareness project.. --- source/blender/compositor/intern/COM_MemoryBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/compositor/intern') diff --git a/source/blender/compositor/intern/COM_MemoryBuffer.h b/source/blender/compositor/intern/COM_MemoryBuffer.h index e0c542108a1..322e4bc388b 100644 --- a/source/blender/compositor/intern/COM_MemoryBuffer.h +++ b/source/blender/compositor/intern/COM_MemoryBuffer.h @@ -259,7 +259,7 @@ public: float u = x; float v = y; this->wrap_pixel(u, v, extend_x, extend_y); - BLI_bilinear_interpolation_fl(this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u - 0.5f, v - 0.5f); + BLI_bilinear_interpolation_fl(this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v); } void readEWA(float *result, const float uv[2], const float derivatives[2][2], PixelSampler sampler); -- cgit v1.2.3