Fix a crash in renderer_d3d12.cpp (#3349)

If querying the debug1 interface fails, don't attempt to release it.
This commit is contained in:
Daniel Kalmar 2024-08-31 20:15:28 +02:00 committed by GitHub
parent 4fb2edfee5
commit eaec8ddf3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -858,9 +858,9 @@ namespace bgfx { namespace d3d12
{
debug1->SetEnableSynchronizedCommandQueueValidation(false);
}
}
DX_RELEASE(debug1, 1);
DX_RELEASE(debug1, 1);
}
}
#endif // BX_PLATFORM_WINDOWS
}