Commit 1caf741a authored by Zhigang Gong's avatar Zhigang Gong
Browse files

glamor: Fixed a bug when computing the bounds of boxes.


Signed-off-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
parent fe0a6a29
......@@ -134,11 +134,11 @@ glamor_calculate_boxes_bound(BoxPtr bound, BoxPtr boxes, int nbox)
if (x_min > boxes[i].x1)
x_min = boxes[i].x1;
if (y_min > boxes[i].y1)
x_min = boxes[i].y1;
y_min = boxes[i].y1;
if (x_max < boxes[i].x2)
x_max = boxes[i].x2;
if (y_max > boxes[i].y2)
if (y_max < boxes[i].y2)
y_max = boxes[i].y2;
}
bound->x1 = x_min;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment