Use this method to re-acquire resources and save initial state.
HRESULT OnResetDevice();
None.
If the method succeeds, the return value is S_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.
ID3DXSprite::OnResetDevice should be called each time the device is reset (using IDirect3DDevice9::Reset), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.
Header: Declared in D3dx9core.h.