d3d11: Use wined3d_device_context_issue_query().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
effa2a7411
commit
e205b691bc
|
@ -821,28 +821,26 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_VSSetSamplers(ID3D11Device
|
|||
static void STDMETHODCALLTYPE d3d11_immediate_context_Begin(ID3D11DeviceContext1 *iface,
|
||||
ID3D11Asynchronous *asynchronous)
|
||||
{
|
||||
struct d3d11_immediate_context *context = impl_from_ID3D11DeviceContext1(iface);
|
||||
struct d3d_query *query = unsafe_impl_from_ID3D11Asynchronous(asynchronous);
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("iface %p, asynchronous %p.\n", iface, asynchronous);
|
||||
|
||||
wined3d_mutex_lock();
|
||||
if (FAILED(hr = wined3d_query_issue(query->wined3d_query, WINED3DISSUE_BEGIN)))
|
||||
ERR("Failed to issue query, hr %#x.\n", hr);
|
||||
wined3d_device_context_issue_query(context->wined3d_context, query->wined3d_query, WINED3DISSUE_BEGIN);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
static void STDMETHODCALLTYPE d3d11_immediate_context_End(ID3D11DeviceContext1 *iface,
|
||||
ID3D11Asynchronous *asynchronous)
|
||||
{
|
||||
struct d3d11_immediate_context *context = impl_from_ID3D11DeviceContext1(iface);
|
||||
struct d3d_query *query = unsafe_impl_from_ID3D11Asynchronous(asynchronous);
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("iface %p, asynchronous %p.\n", iface, asynchronous);
|
||||
|
||||
wined3d_mutex_lock();
|
||||
if (FAILED(hr = wined3d_query_issue(query->wined3d_query, WINED3DISSUE_END)))
|
||||
ERR("Failed to issue query, hr %#x.\n", hr);
|
||||
wined3d_device_context_issue_query(context->wined3d_context, query->wined3d_query, WINED3DISSUE_END);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue