Rico Schüller : d3d10: Implement ID3D10EffectVariable: :AsBlend().

Alexandre Julliard julliard at winehq.org
Wed Oct 28 10:12:26 CDT 2009


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

Author: Rico Schüller <kgbricola at web.de>
Date:   Tue Oct 27 20:12:29 2009 +0100

d3d10: Implement ID3D10EffectVariable::AsBlend().

---

 dlls/d3d10/effect.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index acb0f23..06c9973 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -2629,9 +2629,14 @@ static struct ID3D10EffectShaderVariable * STDMETHODCALLTYPE d3d10_effect_variab
 
 static struct ID3D10EffectBlendVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsBlend(ID3D10EffectVariable *iface)
 {
-    FIXME("iface %p stub!\n", iface);
+    struct d3d10_effect_variable *This = (struct d3d10_effect_variable *)iface;
 
-    return NULL;
+    TRACE("iface %p\n", iface);
+
+    if (This->vtbl == (ID3D10EffectVariableVtbl *)&d3d10_effect_blend_variable_vtbl)
+        return (ID3D10EffectBlendVariable *)This;
+
+    return (ID3D10EffectBlendVariable *)&null_blend_variable;
 }
 
 static struct ID3D10EffectDepthStencilVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsDepthStencil(




More information about the wine-cvs mailing list