From 62e536535168827be76dafb1f5b5e0807c1d5ec9 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 20 Jan 2012 10:04:21 +0800 Subject: [PATCH] glamor_composite: Fix one bug when we have too more vertices. Signed-off-by: Zhigang Gong --- glamor/glamor_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c index 03f7e3207..eb4d9166c 100644 --- a/glamor/glamor_render.c +++ b/glamor/glamor_render.c @@ -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;