wined3d: Remove a redundant condition in shader_get_opcode().

This commit is contained in:
Henri Verbeet 2008-12-04 17:41:31 +01:00 committed by Alexandre Julliard
parent a2febdd200
commit af1bc3d9ed
1 changed files with 4 additions and 3 deletions

View File

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