d3dx9: Remove redundant parameter size check in set_constants().
Signed-off-by: Paul Gofman <gofmanp@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9b35d5c6d4
commit
ed7e27ad8d
|
@ -1181,11 +1181,6 @@ static void set_constants(struct d3dx_regstore *rs, struct d3dx_const_tab *const
|
|||
param_offset = i + j * info.major;
|
||||
else
|
||||
param_offset = i * info.minor + j;
|
||||
if (param_offset * sizeof(unsigned int) >= param->bytes)
|
||||
{
|
||||
WARN("Parameter data is too short, name %s, component %u.\n", debugstr_a(param->name), i);
|
||||
break;
|
||||
}
|
||||
out[offset] = data[param_offset];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue