Making swapbuffers optional in the SDK