diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-08-20 17:26:00 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-08-20 17:26:00 -0600 |
commit | c1fbd72adcbe1aa3a627e8f9a7a0803740c0a008 (patch) | |
tree | 0ede2636b6936684c04e27584db58062d97056c4 /src/mesa | |
parent | 3239532795a027ddc578261f556e13e2c80f9676 (diff) |
minor clean-ups
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_draw_arrays.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/pipe/softpipe/sp_draw_arrays.c b/src/mesa/pipe/softpipe/sp_draw_arrays.c index 2df07eb7d6..9ced89cd7c 100644 --- a/src/mesa/pipe/softpipe/sp_draw_arrays.c +++ b/src/mesa/pipe/softpipe/sp_draw_arrays.c @@ -68,7 +68,6 @@ softpipe_draw_elements(struct pipe_context *pipe, struct softpipe_context *sp = softpipe_context(pipe); struct draw_context *draw = sp->draw; unsigned length, first, incr, i; - void *mapped_indexes = NULL; /* first, check that the primitive is not malformed */ draw_prim_info( mode, &first, &incr ); @@ -96,19 +95,19 @@ softpipe_draw_elements(struct pipe_context *pipe, } /* Map index buffer, if present */ if (indexBuffer) { - mapped_indexes = pipe->winsys->buffer_map(pipe->winsys, - indexBuffer, - PIPE_BUFFER_FLAG_READ); + void *mapped_indexes + = pipe->winsys->buffer_map(pipe->winsys, indexBuffer, + PIPE_BUFFER_FLAG_READ); draw_set_mapped_element_buffer(draw, indexSize, mapped_indexes); } else { - draw_set_mapped_element_buffer(draw, 0, NULL); /* no index/element buffer */ + /* no index/element buffer */ + draw_set_mapped_element_buffer(draw, 0, NULL); } - + /* draw! */ draw_arrays(draw, mode, start, count); - /* * unmap vertex/index buffers */ |