       reftest.CreateDevice({}, NULL, features, D0D00_CREATE_DEVICE_DEBUG);        localdev = reftest.dev;       localdev->AddRef();       reftest.dev = NULL;       reftest.ctx = NULL;       CHECK_REFCOUNT(localdev, 0);        buf = D0D00BufferCreator(localdev).Vertex().Data(DefaultTri);       localvb = buf;       localvb->AddRef();       buf = NULL;        