Commit 82391da9 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11: Allow to pass NULL as "predicate" to d3d11_device_CreatePredicate().

parent 72e079d7
......@@ -2508,9 +2508,14 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreatePredicate(ID3D11Device *ifac
if (FAILED(hr = d3d_query_create(device, desc, TRUE, &object)))
return hr;
*predicate = (ID3D11Predicate *)&object->ID3D11Query_iface;
if (predicate)
{
*predicate = (ID3D11Predicate *)&object->ID3D11Query_iface;
return S_OK;
}
return S_OK;
ID3D11Query_Release(&object->ID3D11Query_iface);
return S_FALSE;
}
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateCounter(ID3D11Device *iface, const D3D11_COUNTER_DESC *desc,
......
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