->AddRef();        CHECK_REFCOUNT(localdev, 0);       CHECK_REFCOUNT(localctx, 0);       CHECK_REFCOUNT(localvb, 0);       CHECK_REFCOUNT(localtex, 0);       CHECK_REFCOUNT(localsrv, 0);        localctx->ClearState();       localctx->Flush();        ////////////////////////////////////////////////////////////        dbg->ReportLiveDeviceObjects(D0D00_RLDO_DETAIL);        