Microsoft DirectX 8.1 (C++)

ID3DXRenderToSurface::OnLostDevice

Releases all references to video memory resources and deletes all stateblocks.

HRESULT OnLostDevice();

Parameters

None.

Return Values

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

This method should be called whenever the device is lost. Before this object can be used again, the device must be reset, and the ID3DXRenderToSurface::OnResetDevice method called.

Requirements

  Header: Declared in D3dx8core.h.
  Import Library: Use D3dx8.lib.