[host] dxgi: Replace standard asserts with DEBUG_ASSERT

This commit is contained in:
vmfortress 2022-01-10 18:14:24 -05:00 committed by Geoffrey McRae
parent 8a61c8ebc2
commit 7da2becfbd
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ static bool d3d11_create(struct DXGIInterface * intf)
HRESULT status; HRESULT status;
dxgi = intf; dxgi = intf;
assert(!this); DEBUG_ASSERT(!this);
this = calloc(1, sizeof(struct D3D11Backend)); this = calloc(1, sizeof(struct D3D11Backend));
if (!this) if (!this)
{ {
@ -97,7 +97,7 @@ fail:
static void d3d11_free(void) static void d3d11_free(void)
{ {
assert(this); DEBUG_ASSERT(this);
for (int i = 0; i < dxgi->maxTextures; ++i) for (int i = 0; i < dxgi->maxTextures; ++i)
if (dxgi->texture[i].impl) if (dxgi->texture[i].impl)

View File

@ -78,7 +78,7 @@ static bool d3d12_create(struct DXGIInterface * intf)
if (!D3D12CreateDevice) if (!D3D12CreateDevice)
return false; return false;
assert(!this); DEBUG_ASSERT(!this);
this = calloc(1, sizeof(struct D3D12Backend)); this = calloc(1, sizeof(struct D3D12Backend));
if (!this) if (!this)
{ {
@ -228,7 +228,7 @@ fail:
static void d3d12_free(void) static void d3d12_free(void)
{ {
assert(this); DEBUG_ASSERT(this);
if (this->texture) if (this->texture)
{ {