From 7da2becfbd8565852815499dcbebff939a1f7144 Mon Sep 17 00:00:00 2001 From: vmfortress Date: Mon, 10 Jan 2022 18:14:24 -0500 Subject: [PATCH] [host] dxgi: Replace standard asserts with `DEBUG_ASSERT` --- host/platform/Windows/capture/DXGI/src/d3d11.c | 4 ++-- host/platform/Windows/capture/DXGI/src/d3d12.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host/platform/Windows/capture/DXGI/src/d3d11.c b/host/platform/Windows/capture/DXGI/src/d3d11.c index 292d53b9..17e74eb8 100644 --- a/host/platform/Windows/capture/DXGI/src/d3d11.c +++ b/host/platform/Windows/capture/DXGI/src/d3d11.c @@ -42,7 +42,7 @@ static bool d3d11_create(struct DXGIInterface * intf) HRESULT status; dxgi = intf; - assert(!this); + DEBUG_ASSERT(!this); this = calloc(1, sizeof(struct D3D11Backend)); if (!this) { @@ -97,7 +97,7 @@ fail: static void d3d11_free(void) { - assert(this); + DEBUG_ASSERT(this); for (int i = 0; i < dxgi->maxTextures; ++i) if (dxgi->texture[i].impl) diff --git a/host/platform/Windows/capture/DXGI/src/d3d12.c b/host/platform/Windows/capture/DXGI/src/d3d12.c index 75089aca..98cf8128 100644 --- a/host/platform/Windows/capture/DXGI/src/d3d12.c +++ b/host/platform/Windows/capture/DXGI/src/d3d12.c @@ -78,7 +78,7 @@ static bool d3d12_create(struct DXGIInterface * intf) if (!D3D12CreateDevice) return false; - assert(!this); + DEBUG_ASSERT(!this); this = calloc(1, sizeof(struct D3D12Backend)); if (!this) { @@ -228,7 +228,7 @@ fail: static void d3d12_free(void) { - assert(this); + DEBUG_ASSERT(this); if (this->texture) {