diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index 91f09a8d..e0dc1b23 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -797,6 +797,7 @@ static bool dxgi_deinit(void) continue; this->backend->unmapTexture(i); tex->map = NULL; + tex->state = TEXTURE_STATE_UNUSED; } if (this->dup && *this->dup) @@ -813,12 +814,6 @@ static bool dxgi_deinit(void) this->backend = NULL; } - for (int i = 0; i < this->maxTextures; ++i) - { - this->texture[i].state = TEXTURE_STATE_UNUSED; - this->texture[i].impl = NULL; - } - LG_LOCK_FREE(this->deviceContextLock); if (this->desktop) diff --git a/host/platform/Windows/capture/DXGI/src/dxgi_capture.h b/host/platform/Windows/capture/DXGI/src/dxgi_capture.h index e7baa6fa..1f4667f8 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi_capture.h +++ b/host/platform/Windows/capture/DXGI/src/dxgi_capture.h @@ -57,8 +57,6 @@ typedef struct Texture // post processing Vector pp; - - void * impl; } Texture;