mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 10:30:26 +01:00
softpipe: move var initialization to silence warning
This commit is contained in:
parent
64cb0cae55
commit
3e01c3f3ba
1 changed files with 1 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ softpipe_get_vertex_info(struct softpipe_context *softpipe)
|
|||
vinfo->num_attribs = 0;
|
||||
for (i = 0; i < fsInfo->num_inputs; i++) {
|
||||
int src;
|
||||
enum interp_mode interp;
|
||||
enum interp_mode interp = INTERP_LINEAR;
|
||||
|
||||
switch (fsInfo->input_interpolate[i]) {
|
||||
case TGSI_INTERPOLATE_CONSTANT:
|
||||
|
|
@ -105,7 +105,6 @@ softpipe_get_vertex_info(struct softpipe_context *softpipe)
|
|||
break;
|
||||
default:
|
||||
assert(0);
|
||||
interp = INTERP_LINEAR;
|
||||
}
|
||||
|
||||
switch (fsInfo->input_semantic_name[i]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue