1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-14 00:30:07 +00:00

Minor code cleanup

This commit is contained in:
Chuck Walbourn 2020-07-10 21:01:52 -07:00
parent eda42c4923
commit 86f59e62c0

View File

@ -826,7 +826,9 @@ namespace
wprintf(L"\n <adapter>:\n");
ComPtr<IDXGIAdapter> adapter;
for (UINT adapterIndex = 0; DXGI_ERROR_NOT_FOUND != dxgiFactory->EnumAdapters(adapterIndex, adapter.ReleaseAndGetAddressOf()); ++adapterIndex)
for (UINT adapterIndex = 0;
SUCCEEDED(dxgiFactory->EnumAdapters(adapterIndex, adapter.ReleaseAndGetAddressOf()));
++adapterIndex)
{
DXGI_ADAPTER_DESC desc;
if (SUCCEEDED(adapter->GetDesc(&desc)))