[PATCH 2/6] d3d11: Use CreateDXGIFactory1 to create factory in D3D11CreateDevice.

Józef Kucia joseph.kucia at gmail.com
Thu Oct 22 05:03:57 CDT 2015


On Thu, Oct 22, 2015 at 11:54 AM, Stefan Dösinger
<stefandoesinger at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Am 2015-10-22 um 01:52 schrieb Józef Kucia:
>> -        hr = CreateDXGIFactory(&IID_IDXGIFactory, (void **)&factory);
>> +        hr = CreateDXGIFactory1(&IID_IDXGIFactory, (void **)&factory);
> Shouldn't you request an IDXGIFactory1 interface now?

It doesn't really matter. CreateDXGIFactory1() accepts both
IID_IDXGIFactory and IID_IDXGIFactory1. There is no need to get
IDXGIFactory1 as we don't use any new methods introduced by DXGI 1.1.

We have tests for CreateDXGIFactory1() in test_create_factory() in dxgi/tests.



More information about the wine-devel mailing list