mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 16:24:29 +01:00
[d3d11] In D3D11CreateDevice, create DXGI factory with IDXGIFactory1 support (#878)
This commit is contained in:
parent
cfc3f686bb
commit
9ad24a2216
@ -118,7 +118,7 @@ extern "C" {
|
||||
Logger::warn("D3D11CreateDevice: Unsupported driver type");
|
||||
|
||||
// We'll use the first adapter returned by a DXGI factory
|
||||
if (FAILED(CreateDXGIFactory(__uuidof(IDXGIFactory), reinterpret_cast<void**>(&dxgiFactory)))) {
|
||||
if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory), reinterpret_cast<void**>(&dxgiFactory)))) {
|
||||
Logger::err("D3D11CreateDevice: Failed to create a DXGI factory");
|
||||
return E_FAIL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user