d3d11: Use CreateDXGIFactory1 to create factory in D3D11CreateDevice.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2015-10-22 01:52:23 +02:00 committed by Alexandre Julliard
parent 7e4453c4fb
commit 22c28d9f5c
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_t
} }
else else
{ {
hr = CreateDXGIFactory(&IID_IDXGIFactory, (void **)&factory); hr = CreateDXGIFactory1(&IID_IDXGIFactory, (void **)&factory);
if (FAILED(hr)) if (FAILED(hr))
{ {
WARN("Failed to create dxgi factory, returning %#x.\n", hr); WARN("Failed to create dxgi factory, returning %#x.\n", hr);