ddraw: Do not report IID_IDirect3DHALDevice in ddraw_find_device() with DDRAW_NO3D.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ced1590255
commit
a6f68107e6
|
@ -4069,6 +4069,12 @@ static HRESULT ddraw_find_device(struct ddraw *ddraw, const D3DFINDDEVICESEARCH
|
|||
|
||||
TRACE("Trying to match GUID %s.\n", debugstr_guid(&fds->guid));
|
||||
|
||||
if ((ddraw->flags & DDRAW_NO3D) && IsEqualGUID(&fds->guid, &IID_IDirect3DHALDevice))
|
||||
{
|
||||
WARN("HAL device not available without 3D support.\n");
|
||||
return DDERR_NOTFOUND;
|
||||
}
|
||||
|
||||
for (i = 0; i < guid_count; ++i)
|
||||
{
|
||||
if (IsEqualGUID(guids[i], &fds->guid))
|
||||
|
|
Loading…
Reference in New Issue