Destroys the subtree of frames under the root, including the root.
HRESULT D3DXFRAMEDestroy( LPD3DXFRAME pFrameRoot, LPD3DXALLOCATEHIERARCHY pAlloc );
If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following values: D3DERR_INVALIDCALL, E_OUTOFMEMORY.
Header: Declared in D3dx9anim.h.