Fix dithering bug where two surfaces overlapped.