[PATCH] d3d9: CreateDevice() requires a valid window to be passed in.

Jeff Smith whydoubt at gmail.com
Wed Sep 9 12:54:50 CDT 2020


On Tue, Sep 8, 2020 at 5:50 AM Stefan Dösinger
<stefandoesinger at gmail.com> wrote:
>
> Am 08.09.20 um 09:02 schrieb Jeff Smith:
> > +    hr = IDirect3D9_CreateDevice(d3d9, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, NULL,
> > +            behavior_flags, &present_parameters, &device);
>
> Is this true of all device types? In particular, also NULLREF? I think
> WPF creates NULLREF devices with NULL windows, although I am not sure
> what for...

Yes, it does appear that CreateDevice with other D3DDEVTYPEs does
behave differently,
particularly NULLREF.  I am trying to improve the tests and solution,
but am running into a
bug with NULLREF that is causing it to fail on some platforms but not others.

Thanks,
Jeff



More information about the wine-devel mailing list