swap buffer only on CastSwapBuffers
Merge pull request #42 from csherratt/swap_buffers

swap buffer only on CastSwapBuffers