Rico Schüller : d3d10: Implement ID3D10EffectVariable: :AsRenderTargetView().
Module: wine Branch: master Commit: 31383cad517b3a74b482c1eba00198b052675ca3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=31383cad517b3a74b482c1eba0... Author: Rico Schüller <kgbricola(a)web.de> Date: Tue Oct 27 20:11:06 2009 +0100 d3d10: Implement ID3D10EffectVariable::AsRenderTargetView(). --- 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 c4391cf..ca92f18 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -2583,9 +2583,14 @@ static struct ID3D10EffectShaderResourceVariable * STDMETHODCALLTYPE d3d10_effec static struct ID3D10EffectRenderTargetViewVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsRenderTargetView( 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_render_target_view_variable_vtbl) + return (ID3D10EffectRenderTargetViewVariable *)This; + + return (ID3D10EffectRenderTargetViewVariable *)&null_render_target_view_variable; } static struct ID3D10EffectDepthStencilViewVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsDepthStencilView(
participants (1)
-
Alexandre Julliard