d3d11: Allow to pass NULL as "query" to d3d11_device_CreateQuery().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
24e8cf64f1
commit
72e079d7a6
|
@ -2486,9 +2486,14 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateQuery(ID3D11Device *iface,
|
||||||
if (FAILED(hr = d3d_query_create(device, desc, FALSE, &object)))
|
if (FAILED(hr = d3d_query_create(device, desc, FALSE, &object)))
|
||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
*query = &object->ID3D11Query_iface;
|
if (query)
|
||||||
|
{
|
||||||
|
*query = &object->ID3D11Query_iface;
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
return S_OK;
|
ID3D11Query_Release(&object->ID3D11Query_iface);
|
||||||
|
return S_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE d3d11_device_CreatePredicate(ID3D11Device *iface, const D3D11_QUERY_DESC *desc,
|
static HRESULT STDMETHODCALLTYPE d3d11_device_CreatePredicate(ID3D11Device *iface, const D3D11_QUERY_DESC *desc,
|
||||||
|
|
Loading…
Reference in New Issue