mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +01:00
[dxgi] Only log QueryInterface errors once
This commit is contained in:
parent
4c78964679
commit
55e7cb1d54
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user