I see. As in non-exact match , it seems the attachframebuffer only apply for non-buffered and buffered mode but not FB to memory mode.

      } else if (g_Config.iRenderingMode == FB_NON_BUFFERED_MODE || g_Config.iRenderingMode == FB_BUFFERED_MODE) {