summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-01-22 11:04:09 -0800
committerEric Anholt <[email protected]>2008-02-04 18:24:16 -0800
commitdf44fefced61d35c302907cb716fa0f9337ae526 (patch)
treee77aa97668214556469c3aa1dcffe09b5809b11c /src
parent931685e243af52271d4cdc0ddc8ea153036dee42 (diff)
[965] Avoid overloaded use of the term 'input' for clarity.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw_upload.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 3b9350c70ef..19a496a199d 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -451,29 +451,25 @@ GLboolean brw_upload_vertices( struct brw_context *brw,
if (nr_uploads > 1 &&
interleave &&
interleave <= 256) {
- struct brw_vertex_element *input0 = upload[0];
-
- input0->glarray = copy_array_to_vbo_array(brw, 0,
- input0->glarray,
- interleave,
- input0->count);
+ upload[0]->glarray = copy_array_to_vbo_array(brw, 0,
+ upload[0]->glarray,
+ interleave,
+ upload[0]->count);
for (i = 1; i < nr_uploads; i++) {
upload[i]->glarray = interleaved_vbo_array(brw,
i,
- input0->glarray,
+ upload[0]->glarray,
upload[i]->glarray,
ptr);
}
}
else {
for (i = 0; i < nr_uploads; i++) {
- struct brw_vertex_element *input = upload[i];
-
- input->glarray = copy_array_to_vbo_array(brw, i,
- input->glarray,
- input->element_size,
- input->count);
+ upload[i]->glarray = copy_array_to_vbo_array(brw, i,
+ upload[i]->glarray,
+ upload[i]->element_size,
+ upload[i]->count);
}
}