Rico Schüller : d3d10: Implement ID3D10EffectVariable: :AsSampler().
Alexandre Julliard
julliard at winehq.org
Wed Oct 28 10:12:27 CDT 2009
Module: wine
Branch: master
Commit: 4ef1031699b9915325f24caf3bff14e05084127b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ef1031699b9915325f24caf3bff14e05084127b
Author: Rico Schüller <kgbricola at web.de>
Date: Tue Oct 27 20:13:25 2009 +0100
d3d10: Implement ID3D10EffectVariable::AsSampler().
---
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 8c59573..220ec51 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -2668,9 +2668,14 @@ static struct ID3D10EffectRasterizerVariable * STDMETHODCALLTYPE d3d10_effect_va
static struct ID3D10EffectSamplerVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsSampler(
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_sampler_variable_vtbl)
+ return (ID3D10EffectSamplerVariable *)This;
+
+ return (ID3D10EffectSamplerVariable *)&null_sampler_variable;
}
static HRESULT STDMETHODCALLTYPE d3d10_effect_variable_SetRawValue(ID3D10EffectVariable *iface,
More information about the wine-cvs
mailing list