20 Feb
2019
20 Feb
'19
2:55 p.m.
On 20-02-19 14:56, Henri Verbeet wrote:
On Wed, 20 Feb 2019 at 16:47, Sven Baars <sven.wine(a)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.