mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-13 21:50:13 +02:00
Minor code cleanup
This commit is contained in:
parent
eda42c4923
commit
86f59e62c0
@ -826,7 +826,9 @@ namespace
|
|||||||
wprintf(L"\n <adapter>:\n");
|
wprintf(L"\n <adapter>:\n");
|
||||||
|
|
||||||
ComPtr<IDXGIAdapter> adapter;
|
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;
|
DXGI_ADAPTER_DESC desc;
|
||||||
if (SUCCEEDED(adapter->GetDesc(&desc)))
|
if (SUCCEEDED(adapter->GetDesc(&desc)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user