Commit 236d3c5d authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

wined3d: Remove a redundant adapter_count check (Coverity).

It is already tested that adapter_idx < wined3d->adapter_count before calling device_init, so adapter_count can never be zero. Signed-off-by: 's avatarSven Baars <sven.wine@gmail.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f3ca766e
......@@ -5336,7 +5336,7 @@ HRESULT device_init(struct wined3d_device *device, struct wined3d *wined3d,
device->ref = 1;
device->wined3d = wined3d;
wined3d_incref(device->wined3d);
device->adapter = wined3d->adapter_count ? adapter : NULL;
device->adapter = adapter;
device->device_parent = device_parent;
list_init(&device->resources);
list_init(&device->shaders);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment