mirror of https://github.com/bkaradzic/bgfx
Fix adapter object leak when there are more than 4 graphics cards (#3306)
when my computer have more than 4 gpu, it's debug break on
This commit is contained in:
parent
530a558b11
commit
0ba23f9b13
|
@ -278,7 +278,7 @@ namespace bgfx
|
|||
{
|
||||
AdapterI* adapter;
|
||||
for (uint32_t ii = 0
|
||||
; DXGI_ERROR_NOT_FOUND != m_factory->EnumAdapters(ii, reinterpret_cast<IDXGIAdapter**>(&adapter) ) && ii < BX_COUNTOF(_caps.gpu)
|
||||
; ii < BX_COUNTOF(_caps.gpu) && DXGI_ERROR_NOT_FOUND != m_factory->EnumAdapters(ii, reinterpret_cast<IDXGIAdapter**>(&adapter) )
|
||||
; ++ii
|
||||
)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue