diff --git a/src/dxgi.cpp b/src/dxgi.cpp index e3e6e6ae7d..4eae796d31 100644 --- a/src/dxgi.cpp +++ b/src/dxgi.cpp @@ -278,7 +278,7 @@ namespace bgfx { AdapterI* adapter; for (uint32_t ii = 0 - ; DXGI_ERROR_NOT_FOUND != m_factory->EnumAdapters(ii, reinterpret_cast(&adapter) ) && ii < BX_COUNTOF(_caps.gpu) + ; ii < BX_COUNTOF(_caps.gpu) && DXGI_ERROR_NOT_FOUND != m_factory->EnumAdapters(ii, reinterpret_cast(&adapter) ) ; ++ii ) {