Commit ceb99946 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use wined3d_uint32_compare() in compare_sig().

parent b4906230
......@@ -3855,16 +3855,16 @@ static int compare_sig(const struct wined3d_shader_signature *sig1, const struct
if ((ret = strcmp(e1->semantic_name, e2->semantic_name)))
return ret;
if (e1->semantic_idx != e2->semantic_idx)
return e1->semantic_idx < e2->semantic_idx ? -1 : 1;
if (e1->sysval_semantic != e2->sysval_semantic)
return e1->sysval_semantic < e2->sysval_semantic ? -1 : 1;
if (e1->component_type != e2->component_type)
return e1->component_type < e2->component_type ? -1 : 1;
if (e1->register_idx != e2->register_idx)
return e1->register_idx < e2->register_idx ? -1 : 1;
if (e1->mask != e2->mask)
return e1->mask < e2->mask ? -1 : 1;
if ((ret = wined3d_uint32_compare(e1->semantic_idx, e2->semantic_idx)))
return ret;
if ((ret = wined3d_uint32_compare(e1->sysval_semantic, e2->sysval_semantic)))
return ret;
if ((ret = wined3d_uint32_compare(e1->component_type, e2->component_type)))
return ret;
if ((ret = wined3d_uint32_compare(e1->register_idx, e2->register_idx)))
return ret;
if ((ret = wined3d_uint32_compare(e1->mask, e2->mask)))
return ret;
}
return 0;
}
......
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