IDirect3DTexture::Unload

HRESULT Unload();

Unloads the current texture.

·Returns D3D_OK if successful, or an error otherwise. For a list of possible return values, see Direct3D Immediate-Mode Return Values.