1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +01:00

[dxgi] Only log QueryInterface errors once

This commit is contained in:
Philip Rebohle 2023-03-01 13:19:42 +01:00
parent 4c78964679
commit 55e7cb1d54
6 changed files with 30 additions and 12 deletions

View File

@ -103,8 +103,11 @@ namespace dxvk {
return S_OK;
}
Logger::warn("DxgiAdapter::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
if (logQueryInterfaceError(__uuidof(IDXGIAdapter), riid)) {
Logger::warn("DxgiAdapter::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
}
return E_NOINTERFACE;
}

View File

@ -93,8 +93,11 @@ namespace dxvk {
return S_OK;
}
Logger::warn("DxgiFactory::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
if (logQueryInterfaceError(__uuidof(IDXGIFactory), riid)) {
Logger::warn("DxgiFactory::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
}
return E_NOINTERFACE;
}

View File

@ -110,8 +110,11 @@ namespace dxvk {
return S_OK;
}
Logger::warn("DxgiOutput::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
if (logQueryInterfaceError(__uuidof(IDXGIOutput), riid)) {
Logger::warn("DxgiOutput::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
}
return E_NOINTERFACE;
}

View File

@ -29,8 +29,11 @@ namespace dxvk {
return S_OK;
}
Logger::warn("DxgiSurfaceFactory::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
if (logQueryInterfaceError(__uuidof(IDXGIVkSurfaceFactory), riid)) {
Logger::warn("DxgiSurfaceFactory::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
}
return E_NOINTERFACE;
}

View File

@ -65,8 +65,11 @@ namespace dxvk {
return S_OK;
}
Logger::warn("DxgiSwapChain::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
if (logQueryInterfaceError(__uuidof(IDXGISwapChain), riid)) {
Logger::warn("DxgiSwapChain::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
}
return E_NOINTERFACE;
}

View File

@ -61,8 +61,11 @@ namespace dxvk {
return S_OK;
}
Logger::warn("DxgiSwapChainDispatcher::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
if (logQueryInterfaceError(__uuidof(IDXGISwapChain), riid)) {
Logger::warn("DxgiSwapChainDispatcher::QueryInterface: Unknown interface query");
Logger::warn(str::format(riid));
}
return m_dispatch->QueryInterface(riid, ppvObject);
}