mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
D3D12: Fixed refcount problem.
This commit is contained in:
parent
5f59978e6b
commit
5b8a55b859
1 changed files with 1 additions and 0 deletions
|
@ -571,6 +571,7 @@ namespace bgfx { namespace d3d12
|
|||
for (uint32_t ii = 0; DXGI_ERROR_NOT_FOUND != m_factory->EnumAdapters(ii, &adapter); ++ii)
|
||||
{
|
||||
adapter->GetDesc(&m_adapterDesc);
|
||||
DX_RELEASE(adapter, 0);
|
||||
if (m_adapterDesc.AdapterLuid.LowPart == luid.LowPart
|
||||
&& m_adapterDesc.AdapterLuid.HighPart == luid.HighPart)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue