[dxgi] CreateDXGIFactory now accepts IDXGIFactory1 as a target interface

This commit is contained in:
Philip Rebohle 2017-12-05 14:05:18 +01:00
parent 26373115ac
commit af30fb3c25
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ namespace dxvk {
SdlInstance sdl;
HRESULT createDxgiFactory(REFIID riid, void **ppFactory) {
if (riid != __uuidof(IDXGIFactory)) {
if (riid != __uuidof(IDXGIFactory)
&& riid != __uuidof(IDXGIFactory1)) {
Logger::err("CreateDXGIFactory: Requested version of IDXGIFactory not supported");
return DXGI_ERROR_UNSUPPORTED;
}