Add failure if SwapBuffers returns an error