Commit 62e53653 authored by Zhigang Gong's avatar Zhigang Gong Committed by Eric Anholt

glamor_composite: Fix one bug when we have too more vertices.

Signed-off-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
parent 9c6fd931
......@@ -1072,7 +1072,7 @@ glamor_composite_with_shader(CARD8 op,
}
nrect_max = (vert_stride * nrect) > GLAMOR_COMPOSITE_VBO_VERT_CNT ?
(GLAMOR_COMPOSITE_VBO_VERT_CNT / 6) : nrect;
(GLAMOR_COMPOSITE_VBO_VERT_CNT / vert_stride) : nrect;
while(nrect) {
int mrect, rect_processed;
......
Markdown is supported
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