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:
parent
7e4453c4fb
commit
22c28d9f5c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue