diff --git a/overlay/d3d10.cpp b/overlay/d3d10.cpp index ed8cff4ef..3ef57012c 100644 --- a/overlay/d3d10.cpp +++ b/overlay/d3d10.cpp @@ -446,8 +446,8 @@ static HRESULT __stdcall myPresent(IDXGISwapChain *pSwapChain, UINT SyncInterval D10State *ds = chains[pSwapChain]; if (ds && ds->pDevice != pDevice) { ods("DXGI: SwapChain device changed"); - delete ds; devices.erase(ds->pDevice); + delete ds; ds = NULL; } if (! ds) {