Stop buffer rendering over border.