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) {