Henri Verbeet : d3d10core: Implement d3d10_device_OMGetBlendState().

Alexandre Julliard julliard at winehq.org
Thu Oct 4 13:38:37 CDT 2012


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Oct  4 13:53:26 2012 +0200

d3d10core: Implement d3d10_device_OMGetBlendState().

---

 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 95b337a..43cafa5 100644
--- a/dlls/d3d10core/device.c
+++ b/dlls/d3d10core/device.c
@@ -571,8 +571,15 @@ static void STDMETHODCALLTYPE d3d10_device_OMGetRenderTargets(ID3D10Device *ifac
 static void STDMETHODCALLTYPE d3d10_device_OMGetBlendState(ID3D10Device *iface,
         ID3D10BlendState **blend_state, FLOAT blend_factor[4], UINT *sample_mask)
 {
-    FIXME("iface %p, blend_state %p, blend_factor %p, sample_mask %p stub!\n",
+    struct d3d10_device *device = impl_from_ID3D10Device(iface);
+
+    TRACE("iface %p, blend_state %p, blend_factor %p, sample_mask %p.\n",
             iface, blend_state, blend_factor, sample_mask);
+
+    if ((*blend_state = device->blend_state ? &device->blend_state->ID3D10BlendState_iface : NULL))
+        ID3D10BlendState_AddRef(*blend_state);
+    memcpy(blend_factor, device->blend_factor, 4 * sizeof(*blend_factor));
+    *sample_mask = device->sample_mask;
 }
 
 static void STDMETHODCALLTYPE d3d10_device_OMGetDepthStencilState(ID3D10Device *iface,




More information about the wine-cvs mailing list