From f145225dbc077221b08f7126a42b30aa842aa36f Mon Sep 17 00:00:00 2001 From: Chris Spencer Date: Wed, 12 Jan 2022 21:13:44 +0000 Subject: [PATCH] [host] dxgi: fix d3d11 assertion failure `DEBUG_ASSERT(!this)` in `d3d11_create` is firing on the second instantiation because we are not clearing `this` in `d3d11_free`. --- host/platform/Windows/capture/DXGI/src/d3d11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/platform/Windows/capture/DXGI/src/d3d11.c b/host/platform/Windows/capture/DXGI/src/d3d11.c index 17e74eb8..e6d1e0b8 100644 --- a/host/platform/Windows/capture/DXGI/src/d3d11.c +++ b/host/platform/Windows/capture/DXGI/src/d3d11.c @@ -105,6 +105,7 @@ static void d3d11_free(void) runningavg_free(&this->avgMapTime); free(this); + this = NULL; } static bool d3d11_copyFrame(Texture * tex, ID3D11Texture2D * src)