The BLI wrapmode variant of nearest interpolation for border boundary is wrong for coordinates between [-1, 0]. That's because the negative comparison in wrap_coord is done on the integer rounded coordinates, which will be zero in this case, so the condition will not fail. To fix this, do the comparison on the original coordinates instead. Pull Request: https://projects.blender.org/blender/blender/pulls/131306