Module: wine Branch: master Commit: b66733aabb1295f2d9b17c63d65bb946cc9d391c URL: http://source.winehq.org/git/wine.git/?a=commit;h=b66733aabb1295f2d9b17c63d6...
Author: Rico Schüller kgbricola@web.de Date: Mon Oct 26 18:38:21 2009 +0100
d3d10: Improve ID3D10Effect::GetVariableByName().
---
dlls/d3d10/effect.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index a6159b7..1d41f53 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -1805,6 +1805,17 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB } }
+ for (i = 0; i < This->local_variable_count; ++i) + { + struct d3d10_effect_variable *v = &This->local_variables[i]; + + if (!strcmp(v->name, name)) + { + TRACE("Returning variable %p.\n", v); + return (ID3D10EffectVariable *)v; + } + } + WARN("Invalid name specified\n");
return (ID3D10EffectVariable *)&null_variable;