softpipe: move var initialization to silence warning

This commit is contained in:
Brian Paul 2012-01-24 11:15:43 -07:00
parent 64cb0cae55
commit 3e01c3f3ba

View file

@ -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]) {