Adde swapBuffers.