Readded swap_buffers
Merge pull request #39 from nielsegberts/master

Readding of swap_buffers