mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxgi] CreateDXGIFactory now accepts IDXGIFactory1 as a target interface
This commit is contained in:
parent
26373115ac
commit
af30fb3c25
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue