mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47: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;
|
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)
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user