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

wined3d: Remove a redundant condition in shader_get_opcode().

parent a2febdd2
......@@ -87,9 +87,10 @@ const SHADER_OPCODE* shader_get_opcode(
/** TODO: use dichotomic search */
while (NULL != shader_ins[i].name) {
if (((code & WINED3DSI_OPCODE_MASK) == shader_ins[i].opcode) &&
(((hex_version >= shader_ins[i].min_version) && (hex_version <= shader_ins[i].max_version)) ||
((shader_ins[i].min_version == 0) && (shader_ins[i].max_version == 0)))) {
if ((code & WINED3DSI_OPCODE_MASK) == shader_ins[i].opcode
&& hex_version >= shader_ins[i].min_version
&& (!shader_ins[i].max_version || hex_version <= shader_ins[i].max_version))
{
return &shader_ins[i];
}
++i;
......
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