[PATCH] wined3d: Pass d3d_info instead of the device to wined3d_stateblock_state_init.

Sven Baars sven.wine at gmail.com
Wed Feb 20 08:55:35 CST 2019


On 20-02-19 14:56, Henri Verbeet wrote:
> On Wed, 20 Feb 2019 at 16:47, Sven Baars <sven.wine at gmail.com> wrote:
>> On 20-02-19 14:05, Henri Verbeet wrote:
>> In device_init is says
>>
>>     device->adapter = wined3d->adapter_count ? adapter : NULL;
>>
>> meaning that device->adapter can be NULL if adapter_count can be 0.
> All callers validate that adapter_idx < adapter_count. The check in
> that line is redundant.
Thanks for the explanation. Do you want me to replace
"wined3d->adapter_count ? adapter : NULL" with "adapter"? I wouldn't
mind if you did it either.



More information about the wine-devel mailing list