summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-02-28 13:02:10 -0500
committerZhigang Gong <zhigang.gong@gmail.com>2014-03-13 21:52:25 +0800
commitb951818ab40834530c7d9b9e2c29ff259401ce18 (patch)
tree7a16f4f6c945cab67d8bfb2b896a3b82fbb801e7
parentc6a09f7f51a5debb3be43c75e7418a11c33085ea (diff)
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. Ported from Eric's xserver glamor tree. Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/glamor_fill.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/glamor_fill.c b/src/glamor_fill.c
index 634dbe1..1c0b393 100644
--- a/src/glamor_fill.c
+++ b/src/glamor_fill.c
@@ -230,16 +230,17 @@ _glamor_solid_boxes(PixmapPtr pixmap, BoxPtr box, int nbox, float *color)
while(nbox) {
int box_cnt, i;
- float *valid_vertices;
- valid_vertices = pvertices;
+ float *next_box;
+
+ 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)
dispatch->glDrawArrays(GL_TRIANGLE_FAN, 0, box_cnt * 4);