From: Eric Anholt Date: Sun, 5 Jan 2014 23:01:17 +0000 (+0800) Subject: glamor: Rename a variable to be more descriptive. X-Git-Tag: upstream/1.15.99.902~56^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec3ab2f67baa00326a4964ed2047e8a137915578;p=platform%2Fupstream%2Fxorg-server.git glamor: Rename a variable to be more descriptive. The "valid_" prefix was used above to describe our allocation that gets reused multiple times, which is totally unrelated. Signed-off-by: Eric Anholt Reviewed-by: Markus Wick --- diff --git a/glamor/glamor_fill.c b/glamor/glamor_fill.c index d5843b7..12b8c37 100644 --- a/glamor/glamor_fill.c +++ b/glamor/glamor_fill.c @@ -226,17 +226,17 @@ _glamor_solid_boxes(PixmapPtr pixmap, BoxPtr box, int nbox, float *color) while (nbox) { int box_cnt, i; - float *valid_vertices; + float *next_box; - valid_vertices = pvertices; + next_box = pvertices; box_cnt = nbox > valid_nbox ? valid_nbox : nbox; for (i = 0; i < box_cnt; i++) { glamor_set_normalize_vcoords(pixmap_priv, xscale, yscale, box[i].x1, box[i].y1, box[i].x2, box[i].y2, glamor_priv->yInverted, - valid_vertices); - valid_vertices += 4 * 2; + next_box); + next_box += 4 * 2; } if (box_cnt == 1) glDrawArrays(GL_TRIANGLE_FAN, 0, box_cnt * 4);