mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-24 22:37:19 +00:00
[host] dxgi: Replace standard asserts with DEBUG_ASSERT
This commit is contained in:
parent
8a61c8ebc2
commit
7da2becfbd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user