Original Post
Hello,
I am wondering is it me, or in DirectX8.1 there must be a new way to validate and restore the device. My code:
HRESULT CGraphics::ValidateDevice(void)
{
HRESULT hr = 0;
hr = m_pd3dDevice->TestCooperativeLevel();
if(FAILED( hr ))
{
if( hr == D3DERR_DEVICELOST )
return S_OK;
if( hr == D3DERR_DEVICENOTRESET )
{
hr = m_pd3dDevice->Reset( &m_d3dpp );
if(FAILED( hr ))
{
SetError( "Could not reset the device." );
PostQuitMessage( E_FAIL );
return E_FAIL;
}
Clear();
......
Doesn''t seem to reset the device correctly anymore -- any help would be appreciated. the m_d3dpp is a private member of the CGraphics class aka saved after the Initialization of Direct3D (which works fine ... why I don''t get this resetting part - worked in 8.0a )
Thanks for the help,
David