mirror of https://github.com/doitsujin/dxvk
[dxgi] CreateDXGIFactory now accepts IDXGIFactory1 as a target interface
This commit is contained in:
parent
26373115ac
commit
af30fb3c25
|
@ -17,7 +17,8 @@ namespace dxvk {
|
||||||
SdlInstance sdl;
|
SdlInstance sdl;
|
||||||
|
|
||||||
HRESULT createDxgiFactory(REFIID riid, void **ppFactory) {
|
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");
|
Logger::err("CreateDXGIFactory: Requested version of IDXGIFactory not supported");
|
||||||
return DXGI_ERROR_UNSUPPORTED;
|
return DXGI_ERROR_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue