wined3d: Check for unread registers in a more logical way in handle_ps3_input().

~0U always >= (in_count + 2).
This commit is contained in:
Henri Verbeet 2010-07-27 12:54:49 +02:00 committed by Alexandre Julliard
parent e81811b3a0
commit ce39714228
1 changed files with 4 additions and 6 deletions

View File

@ -3757,13 +3757,11 @@ static void handle_ps3_input(struct wined3d_shader_buffer *buffer, const struct
if (!(input_map & 1)) continue;
in_idx = map[i];
if (in_idx >= (in_count + 2)) {
FIXME("More input varyings declared than supported, expect issues\n");
continue;
}
else if (map[i] == ~0U)
/* Declared, but not read register */
if (in_idx == ~0U) continue;
if (in_idx >= (in_count + 2))
{
/* Declared, but not read register */
FIXME("More input varyings declared than supported, expect issues.\n");
continue;
}