d3d9: Don't grab wined3d lock for wined3d_query_issue().

Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jan Sikorski 2021-10-15 14:26:30 +02:00 committed by Alexandre Julliard
parent 6b866b93e0
commit 64b7ba3d65
1 changed files with 1 additions and 8 deletions

View File

@ -123,15 +123,8 @@ static DWORD WINAPI d3d9_query_GetDataSize(IDirect3DQuery9 *iface)
static HRESULT WINAPI d3d9_query_Issue(IDirect3DQuery9 *iface, DWORD flags)
{
struct d3d9_query *query = impl_from_IDirect3DQuery9(iface);
HRESULT hr;
TRACE("iface %p, flags %#x.\n", iface, flags);
wined3d_mutex_lock();
hr = wined3d_query_issue(query->wined3d_query, flags);
wined3d_mutex_unlock();
return hr;
return wined3d_query_issue(query->wined3d_query, flags);
}
static HRESULT WINAPI d3d9_query_GetData(IDirect3DQuery9 *iface, void *data, DWORD size, DWORD flags)