Module: wine Branch: master Commit: e4df956f95484d0193172199d73c459c7284b260 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e4df956f95484d0193172199d7...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Oct 2 22:15:37 2012 +0200
d3d10core: Implement d3d10_device_OMGetDepthStencilState().
---
dlls/d3d10core/device.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c index 78d930b..ae3b865 100644 --- a/dlls/d3d10core/device.c +++ b/dlls/d3d10core/device.c @@ -572,8 +572,15 @@ static void STDMETHODCALLTYPE d3d10_device_OMGetBlendState(ID3D10Device *iface, static void STDMETHODCALLTYPE d3d10_device_OMGetDepthStencilState(ID3D10Device *iface, ID3D10DepthStencilState **depth_stencil_state, UINT *stencil_ref) { - FIXME("iface %p, depth_stencil_state %p, stencil_ref %p stub!\n", + struct d3d10_device *device = impl_from_ID3D10Device(iface); + + TRACE("iface %p, depth_stencil_state %p, stencil_ref %p.\n", iface, depth_stencil_state, stencil_ref); + + if ((*depth_stencil_state = device->depth_stencil_state + ? &device->depth_stencil_state->ID3D10DepthStencilState_iface : NULL)) + ID3D10DepthStencilState_AddRef(*depth_stencil_state); + *stencil_ref = device->stencil_ref; }
static void STDMETHODCALLTYPE d3d10_device_SOGetTargets(ID3D10Device *iface,