Use correct variable name

This commit is contained in:
goat 2026-02-12 21:03:38 +01:00 committed by GitHub
parent abe27891c3
commit b1b99bae13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -491,7 +491,6 @@ std::vector<IDXGIAdapter1*> enum_dxgi_adapters()
vAdapters.push_back(pAdapter);
}
if (pFactory)
{
pFactory->Release();
@ -1055,7 +1054,7 @@ int main() {
for (IDXGIAdapter1* adapter : enum_dxgi_adapters()) {
DXGI_ADAPTER_DESC1 adapterDescription{};
myAdapter->GetDesc1(&adapterDescription);
adapter->GetDesc1(&adapterDescription);
log << std::format(L"GPU Desc: {}", adapterDescription.Description) << std::endl;
}