From c2e3c37babec52e7dba540d69269b8c2b971d0d1 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 7 Nov 2023 20:42:25 +1100 Subject: [PATCH] [host] dxgi: remove no longer used member for copy backends --- host/platform/Windows/capture/DXGI/src/dxgi.c | 7 +------ host/platform/Windows/capture/DXGI/src/dxgi_capture.h | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) 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;