memset struct before gl_cg_save_cgp.