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

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


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

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

d3d10: Implement ID3D10EffectVariable::AsDepthStencilView().

---

 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 ca92f18..36941da 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -2596,9 +2596,14 @@ static struct ID3D10EffectRenderTargetViewVariable * STDMETHODCALLTYPE d3d10_eff
 static struct ID3D10EffectDepthStencilViewVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsDepthStencilView(
         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_depth_stencil_view_variable_vtbl)
+        return (ID3D10EffectDepthStencilViewVariable *)This;
+
+    return (ID3D10EffectDepthStencilViewVariable *)&null_depth_stencil_view_variable;
 }
 
 static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_variable_AsConstantBuffer(




More information about the wine-cvs mailing list