Commit f296fe68 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3dx9: Implement ID3DXBaseEffect::GetParameterElement().

parent 1ae414bc
......@@ -801,8 +801,30 @@ static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetParameterBySemantic(ID3DXBaseEff
static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetParameterElement(ID3DXBaseEffect *iface, D3DXHANDLE parameter, UINT index)
{
struct ID3DXBaseEffectImpl *This = impl_from_ID3DXBaseEffect(iface);
struct d3dx_parameter *param = is_valid_parameter(This, parameter);
TRACE("iface %p, parameter %p, index %u\n", This, parameter, index);
if (!param) param = get_parameter_by_name(This, NULL, parameter, FALSE);
if (!param)
{
if (index < This->parameter_count)
{
TRACE("Returning parameter %p\n", This->parameter_handles[index]);
return This->parameter_handles[index];
}
}
else
{
if (index < param->element_count)
{
TRACE("Returning parameter %p\n", param->member_handles[index]);
return param->member_handles[index];
}
}
FIXME("iface %p, parameter %p, index %u stub\n", This, parameter, index);
WARN("Invalid argument specified\n");
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment