[host] dxgi: Replace standard asserts with DEBUG_ASSERT

This commit is contained in:
vmfortress authored and Geoffrey McRae committed 2022-01-11 11:11:42 +11:00
1 parent 8a61c8ebc2
commit 7da2becfbd
2 files changed
+4 -4

No files matched your search

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