softpipe: move var initialization to silence warning
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user