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

[d3d11] Fixed interface queries

This commit is contained in:
Philip Rebohle 2017-10-15 21:50:34 +02:00
parent 08f4fb82f9
commit b0517b16f0
3 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,9 @@ namespace dxvk {
HRESULT D3D11Buffer::QueryInterface(REFIID riid, void** ppvObject) {
COM_QUERY_IFACE(riid, ppvObject, IUnknown);
COM_QUERY_IFACE(riid, ppvObject, ID3D11DeviceChild);
COM_QUERY_IFACE(riid, ppvObject, ID3D11Resource);
COM_QUERY_IFACE(riid, ppvObject, ID3D11Buffer);
Logger::warn("D3D11Buffer::QueryInterface: Unknown interface query");

View File

@ -20,6 +20,8 @@ namespace dxvk {
HRESULT D3D11DeviceContext::QueryInterface(
REFIID riid,
void** ppvObject) {
COM_QUERY_IFACE(riid, ppvObject, IUnknown);
COM_QUERY_IFACE(riid, ppvObject, ID3D11DeviceChild);
COM_QUERY_IFACE(riid, ppvObject, ID3D11DeviceContext);
Logger::warn("D3D11DeviceContext::QueryInterface: Unknown interface query");

View File

@ -28,6 +28,7 @@ namespace dxvk {
HRESULT D3D11Device::QueryInterface(REFIID riid, void** ppvObject) {
COM_QUERY_IFACE(riid, ppvObject, IUnknown);
COM_QUERY_IFACE(riid, ppvObject, ID3D11Device);
if (riid == __uuidof(IDXVKDevice)