mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d9] Only log QueryInterface errors once
This commit is contained in:
parent
cc78276897
commit
4c78964679
@ -136,8 +136,10 @@ namespace dxvk {
|
||||
|
||||
if (logQueryInterfaceError(__uuidof(D3D11Interface), riid)) {
|
||||
Logger::warn("D3D11Shader::QueryInterface: Unknown interface query");
|
||||
return E_NOINTERFACE;
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
const D3D11CommonShader* GetCommonShader() const {
|
||||
|
@ -29,8 +29,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9VertexBuffer::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DVertexBuffer9), riid)) {
|
||||
Logger::warn("D3D9VertexBuffer::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -86,8 +89,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9IndexBuffer::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DIndexBuffer9), riid)) {
|
||||
Logger::warn("D3D9IndexBuffer::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -201,8 +201,11 @@ namespace dxvk {
|
||||
if (riid == __uuidof(IDirect3DDevice9Ex))
|
||||
return E_NOINTERFACE;
|
||||
|
||||
Logger::warn("D3D9DeviceEx::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DDevice9), riid)) {
|
||||
Logger::warn("D3D9DeviceEx::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -91,8 +91,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9InterfaceEx::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3D9), riid)) {
|
||||
Logger::warn("D3D9InterfaceEx::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -64,8 +64,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9Query::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DQuery9), riid)) {
|
||||
Logger::warn("D3D9Query::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -109,8 +109,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9Shader::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(Base), riid)) {
|
||||
Logger::warn("D3D9Shader::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -32,8 +32,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9StateBlock::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DStateBlock9), riid)) {
|
||||
Logger::warn("D3D9StateBlock::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -74,8 +74,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9Surface::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DSurface9), riid)) {
|
||||
Logger::warn("D3D9Surface::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -84,8 +84,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9SwapChainEx::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DSwapChain9), riid)) {
|
||||
Logger::warn("D3D9SwapChainEx::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -32,8 +32,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9Texture2D::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DTexture9), riid)) {
|
||||
Logger::warn("D3D9Texture2D::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -128,8 +131,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9Texture3D::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DVolumeTexture9), riid)) {
|
||||
Logger::warn("D3D9Texture3D::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -218,8 +224,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9TextureCube::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DCubeTexture9), riid)) {
|
||||
Logger::warn("D3D9TextureCube::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -40,8 +40,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9VertexDecl::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DVertexDeclaration9), riid)) {
|
||||
Logger::warn("D3D9VertexDecl::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -65,8 +65,11 @@ namespace dxvk {
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
Logger::warn("D3D9Volume::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
if (logQueryInterfaceError(__uuidof(IDirect3DVolume9), riid)) {
|
||||
Logger::warn("D3D9Volume::QueryInterface: Unknown interface query");
|
||||
Logger::warn(str::format(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user