mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
tgsi: fix warning: ‘interp’ may be used uninitialized
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f257ef2bbb
commit
850619117e
1 changed files with 1 additions and 0 deletions
|
|
@ -3087,6 +3087,7 @@ exec_declaration(struct tgsi_exec_machine *mach,
|
|||
|
||||
case TGSI_INTERPOLATE_COLOR:
|
||||
eval = mach->flatshade_color ? eval_constant_coef : eval_perspective_coef;
|
||||
interp = mach->flatshade_color ? interp_constant_offset : interp_perspective_offset;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue