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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 10 10:36:21 CST 2015


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Nov 10 01:32:39 2015 +0100

d3d11: Implement d3d11_immediate_context_IAGetPrimitiveTopology().

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/device.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index 9f98104..3f80d43 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -1010,7 +1010,13 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_GSGetShader(ID3D11DeviceCo
 static void STDMETHODCALLTYPE d3d11_immediate_context_IAGetPrimitiveTopology(ID3D11DeviceContext *iface,
         D3D11_PRIMITIVE_TOPOLOGY *topology)
 {
-    FIXME("iface %p, topology %p stub!\n", iface, topology);
+    struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
+
+    TRACE("iface %p, topology %p.\n", iface, topology);
+
+    wined3d_mutex_lock();
+    wined3d_device_get_primitive_type(device->wined3d_device, (enum wined3d_primitive_type *)topology);
+    wined3d_mutex_unlock();
 }
 
 static void STDMETHODCALLTYPE d3d11_immediate_context_VSGetShaderResources(ID3D11DeviceContext *iface,




More information about the wine-cvs mailing list