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

d3dx9: Don't double check the technique.

parent bf528c5e
......@@ -3527,19 +3527,9 @@ static HRESULT WINAPI ID3DXEffectImpl_SetTechnique(ID3DXEffect *iface, D3DXHANDL
if (tech)
{
UINT i;
for (i = 0; i < base->technique_count; ++i)
{
struct d3dx_technique *t = get_technique_struct(base->technique_handles[i]);
if (tech == t)
{
This->active_technique = get_technique_handle(t);
TRACE("Technique %u (%p)\n", i, tech);
return D3D_OK;
}
}
This->active_technique = get_technique_handle(tech);
TRACE("Technique %p\n", tech);
return D3D_OK;
}
WARN("Invalid argument supplied.\n");
......
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