We are using Direct3D9 in our Unigine::App.
While in full screen, if the app loses focus, it cannot recover. I tried the IDirect3DDevice9::Reset() but it fails saying that all the resources need to be released before reseting the device.
What is the best way to handle this situation?