Rico Schüller : d3d10: Implement ID3D10EffectVariable: :AsString().
Alexandre Julliard
julliard at winehq.org
Wed Oct 28 10:12:25 CDT 2009
Module: wine
Branch: master
Commit: 2c3674d6ce75e3fb7669f1cbe0cb2756dfab348b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c3674d6ce75e3fb7669f1cbe0cb2756dfab348b
Author: Rico Schüller <kgbricola at web.de>
Date: Tue Oct 27 20:10:31 2009 +0100
d3d10: Implement ID3D10EffectVariable::AsString().
---
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 d4c7310..b52656b 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -2557,9 +2557,14 @@ static struct ID3D10EffectMatrixVariable * STDMETHODCALLTYPE d3d10_effect_variab
static struct ID3D10EffectStringVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsString(
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_string_variable_vtbl)
+ return (ID3D10EffectStringVariable *)This;
+
+ return (ID3D10EffectStringVariable *)&null_string_variable;
}
static struct ID3D10EffectShaderResourceVariable * STDMETHODCALLTYPE d3d10_effect_variable_AsShaderResource(
More information about the wine-cvs
mailing list