From 2d0ea392ec574efb96ac7a04ee72ba580417ba1e Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Mon, 12 Dec 2011 09:49:06 +0800 Subject: [PATCH] Call screen's method to create pixmap. As we may need to fallback to DDX's rendering path during the glyphs, we have to call screen's create pixmap method to create pixmap. Signed-off-by: Zhigang Gong --- glamor/glamor_glyphs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glamor/glamor_glyphs.c b/glamor/glamor_glyphs.c index 30d9e585b..d61d74b5f 100644 --- a/glamor/glamor_glyphs.c +++ b/glamor/glamor_glyphs.c @@ -172,7 +172,7 @@ glamor_realize_glyph_caches(ScreenPtr pScreen) goto bail; /* Now allocate the pixmap and picture */ - pixmap = glamor_create_pixmap(pScreen, + pixmap = pScreen->CreatePixmap(pScreen, CACHE_PICTURE_SIZE, CACHE_PICTURE_SIZE, depth, 0); @@ -628,7 +628,7 @@ glamor_glyphs_via_mask(CARD8 op, mask_format = a8Format; } - mask_pixmap = glamor_create_pixmap(screen, width, height, + mask_pixmap = screen->CreatePixmap(screen, width, height, mask_format->depth, CREATE_PIXMAP_USAGE_SCRATCH); if (!mask_pixmap)