Readding of swap_buffers

In commit d35ccf5d (merge revamp) the function swap_buffers was removed. This broke rust-airhockey.