=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11: Implement d3d10_query_Begin().

Alexandre Julliard julliard at winehq.org
Thu Jul 7 09:48:23 CDT 2016


Module: wine
Branch: master
Commit: 718d3119e56a6e56dd929015b59d8fba4596412e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=718d3119e56a6e56dd929015b59d8fba4596412e

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Jul  7 12:22:29 2016 +0200

d3d11: Implement d3d10_query_Begin().

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d11/async.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d11/async.c b/dlls/d3d11/async.c
index 323a348..494a23b 100644
--- a/dlls/d3d11/async.c
+++ b/dlls/d3d11/async.c
@@ -266,7 +266,15 @@ static HRESULT STDMETHODCALLTYPE d3d10_query_SetPrivateDataInterface(ID3D10Query
 
 static void STDMETHODCALLTYPE d3d10_query_Begin(ID3D10Query *iface)
 {
-    FIXME("iface %p stub!\n", iface);
+    struct d3d_query *query = impl_from_ID3D10Query(iface);
+    HRESULT hr;
+
+    TRACE("iface %p.\n", iface);
+
+    wined3d_mutex_lock();
+    if (FAILED(hr = wined3d_query_issue(query->wined3d_query, WINED3DISSUE_BEGIN)))
+        ERR("Failed to issue query, hr %#x.\n", hr);
+    wined3d_mutex_unlock();
 }
 
 static void STDMETHODCALLTYPE d3d10_query_End(ID3D10Query *iface)




More information about the wine-cvs mailing list