void vrend_renderer_prepare_reset(void)
{
   /* make sure user contexts are no longer accessed */
   vrend_free_sync_thread();
   vrend_hw_switch_context(vrend_state.ctx0, true);
}
void vrend_renderer_prepare_reset(void)
{
    
   vrend_free_sync_thread();
   vrend_hw_switch_context(vrend_state.ctx0, true);
}