d3d10: Improve ID3D10Effect::GetVariableByName().

This commit is contained in:
Rico Schüller 2009-10-26 18:38:21 +01:00 committed by Alexandre Julliard
parent 135966f22e
commit b66733aabb
1 changed files with 11 additions and 0 deletions

View File

@ -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;