glamor: Call glamor_composite_rects only when enable RENDER.

This commit is contained in:
Zhigang Gong 2011-04-08 15:22:52 +08:00
parent f9843c7a35
commit 3105fe9f64

View File

@ -572,8 +572,10 @@ glamor_buffer_glyph(ScreenPtr screen,
static void glamor_glyphs_to_mask(PicturePtr mask,
glamor_glyph_buffer_t *buffer)
{
#ifdef RENDER
glamor_composite_rects(PictOpAdd, buffer->source, mask,
buffer->count, buffer->rects);
#endif
buffer->count = 0;
buffer->source = NULL;