[Bug]: D3DERR_INVALIDCALL crash on focus loss with RTSS active
Odd thing I noticed happening recently, if you have the game running in a borderless-window (but not full-screen), then alt-tab out and do something that shows the UAC "do you want this app to make changes" prompt, eg. opening cheat engine, the game window just disappears, but game still shows as running in task manager.
Pretty sure this didn't used to happen before, maybe the recent overlay stuff is interfering somehow.
E: also even just pressing ctrl-alt-del to show the lock/task manager/etc options makes game throw up a D3D error and exit, not sure if this is the same bug as above though.
Seems it's an issue with RTSS/Afterburner running, closing it down seems to fix it.
Looks like that even happens with vanilla game too, so not something we're doing on our end.
Would be nice to get a fix for it but not really sure what's going wrong, the only thing I know is IDirect3DDevice9::Reset returns D3DERR_INVALIDCALL if RTSS is running, but not sure what could be causing that.