Why won't Direct3D recover after unplugging a monitor in Windows XP?
问题 An interesting bug came up that I'm having no luck with. In a windowed Direct3D9 program using native code, I handle a device lost using something similar to the following: void MyClass::RecoverFromDeviceLost(LPDIRECT3DDEVICE9 deviceToRecover, D3DPRESENT_PARAMETERS devicePresentParams ) { HRESULT hr = deviceToRecover->TestCooperativeLevel(); if(hr == D3DERR_DEVICELOST ) { //Code to shutdown all D3DPOOL_DEFAULT allocated objects }else if(hr == D3DERR_DEVICENOTRESET){ hr = deviceToRecover-