mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-14 00:30:07 +00:00
Minor code cleanup
This commit is contained in:
parent
eda42c4923
commit
86f59e62c0
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user