[PATCH 5/6] d3d11: Forward d3d10_device_OMSetDepthStencilState() to d3d11_immediate_context_OMSetDepthStencilState().
Józef Kucia
jkucia at codeweavers.com
Wed Mar 16 04:02:39 CDT 2016
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/d3d11/device.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index ef4a7f4..a454261 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -3219,12 +3219,14 @@ static void STDMETHODCALLTYPE d3d10_device_OMSetDepthStencilState(ID3D10Device1
ID3D10DepthStencilState *depth_stencil_state, UINT stencil_ref)
{
struct d3d_device *device = impl_from_ID3D10Device(iface);
+ struct d3d_depthstencil_state *ds_state_object;
TRACE("iface %p, depth_stencil_state %p, stencil_ref %u.\n",
iface, depth_stencil_state, stencil_ref);
- device->depth_stencil_state = unsafe_impl_from_ID3D10DepthStencilState(depth_stencil_state);
- device->stencil_ref = stencil_ref;
+ ds_state_object = unsafe_impl_from_ID3D10DepthStencilState(depth_stencil_state);
+ d3d11_immediate_context_OMSetDepthStencilState(&device->immediate_context.ID3D11DeviceContext_iface,
+ ds_state_object ? &ds_state_object->ID3D11DepthStencilState_iface : NULL, stencil_ref);
}
static void STDMETHODCALLTYPE d3d10_device_SOSetTargets(ID3D10Device1 *iface,
--
2.4.10
More information about the wine-patches
mailing list