1
0
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:
Andrew Eikum 2019-01-22 03:57:05 -06:00 committed by Philip Rebohle
parent cfc3f686bb
commit 9ad24a2216

View File

@ -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;
}