Readded swap_buffers