From 77d0424d7fc98e883eca28c075bb72e51f44ce48 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 2 May 2018 17:00:56 +0200 Subject: [PATCH] [dxgi] Advertize support for ID3D10Device and ID3D10Device1 We don't actually support these, but applications can reasonably assume that D3D10 is supported if D3D11 is present. Closes #329. --- src/dxgi/dxgi_adapter.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dxgi/dxgi_adapter.cpp b/src/dxgi/dxgi_adapter.cpp index f9260291..f370bb4e 100644 --- a/src/dxgi/dxgi_adapter.cpp +++ b/src/dxgi/dxgi_adapter.cpp @@ -1,6 +1,8 @@ #include #include +#include + #include "dxgi_adapter.h" #include "dxgi_device.h" #include "dxgi_enums.h" @@ -55,6 +57,12 @@ namespace dxvk { if (pUMDVersion != nullptr) *pUMDVersion = LARGE_INTEGER(); + if (InterfaceName == __uuidof(ID3D10Device) + || InterfaceName == __uuidof(ID3D10Device1)) { + Logger::warn("DXGI: CheckInterfaceSupport: No D3D10 support"); + return S_OK; + } + Logger::err("DXGI: CheckInterfaceSupport: Unsupported interface"); Logger::err(str::format(InterfaceName)); return DXGI_ERROR_UNSUPPORTED;