memcpy inside YuiSwapBuffers is not necessary