I've got a problem like this, I used d3d and CEGUI in my project, and when I change the program between window mode and fullscreen mode or resize the window form, I should lost and reset the d3ddevice as below.
Code: Select all
case WM_SIZE:
// ...
OnLostDevice();
m_pD3DDevice->Reset(&m_D3DPP);
OnResetDevice();
// ...
everything goes ok before I add CEGUI. when I added CEGUI to my project, and the m_pDX9Renderer->preD3DReset() and postD3DReset() methods are added in OnLostDevice() and OnResetDevice() sparately. it always report error at reset(&m_D3DPP) step. any advice please...Are these enough when reset the D3D device? many thanks!