dri/nouveau: Silence uninitialized variable warning.

Fixes this GCC warning.
nouveau_vbo_t.c: In function 'nv10_vbo_render_prims':
nouveau_render_t.c:161: warning: 'max_out' may be used uninitialized in this function
nouveau_render_t.c:161: note: 'max_out' was declared here
This commit is contained in:
Vinson Lee 2010-11-03 18:13:14 -07:00
parent 3ded3e98ff
commit d3fcadf840
1 changed files with 5 additions and 0 deletions

View File

@ -173,6 +173,11 @@ get_max_vertices(struct gl_context *ctx, const struct _mesa_index_buffer *ib,
case GL_UNSIGNED_BYTE:
max_out = MAX_OUT_I16;
break;
default:
assert(0);
max_out = 0;
break;
}
} else {
max_out = MAX_OUT_L;