Compositor: Fix Dilate/Erode node crash with Step option
It was writing the buffer out of bounds. Only "Full Frame" mode was affected.
This commit is contained in:
parent
4569d9c0c3
commit
f3274bfa70
|
@ -783,7 +783,8 @@ static void step_update_memory_buffer(MemoryBuffer *output,
|
|||
|
||||
start = half_window + (i - 1) * window + 1;
|
||||
for (int y = -MIN2(0, start); y < window - MAX2(0, start + window - bheight); y++) {
|
||||
result.get_value(x, y + start + area.ymin, 0) = selector(temp[y], temp[y + window - 1]);
|
||||
result.get_value(x + area.xmin, y + start + area.ymin, 0) = selector(temp[y],
|
||||
temp[y + window - 1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue