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 <eric@anholt.net> Reviewed-by: Markus Wick <markus@selfnet.de>
This commit is contained in:
parent
01e30d2043
commit
ec3ab2f67b
|
@ -226,17 +226,17 @@ _glamor_solid_boxes(PixmapPtr pixmap, BoxPtr box, int nbox, float *color)
|
||||||
|
|
||||||
while (nbox) {
|
while (nbox) {
|
||||||
int box_cnt, i;
|
int box_cnt, i;
|
||||||
float *valid_vertices;
|
float *next_box;
|
||||||
|
|
||||||
valid_vertices = pvertices;
|
next_box = pvertices;
|
||||||
box_cnt = nbox > valid_nbox ? valid_nbox : nbox;
|
box_cnt = nbox > valid_nbox ? valid_nbox : nbox;
|
||||||
for (i = 0; i < box_cnt; i++) {
|
for (i = 0; i < box_cnt; i++) {
|
||||||
glamor_set_normalize_vcoords(pixmap_priv, xscale, yscale,
|
glamor_set_normalize_vcoords(pixmap_priv, xscale, yscale,
|
||||||
box[i].x1, box[i].y1,
|
box[i].x1, box[i].y1,
|
||||||
box[i].x2, box[i].y2,
|
box[i].x2, box[i].y2,
|
||||||
glamor_priv->yInverted,
|
glamor_priv->yInverted,
|
||||||
valid_vertices);
|
next_box);
|
||||||
valid_vertices += 4 * 2;
|
next_box += 4 * 2;
|
||||||
}
|
}
|
||||||
if (box_cnt == 1)
|
if (box_cnt == 1)
|
||||||
glDrawArrays(GL_TRIANGLE_FAN, 0, box_cnt * 4);
|
glDrawArrays(GL_TRIANGLE_FAN, 0, box_cnt * 4);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user