Commit 2d0ea392 authored by Zhigang Gong's avatar Zhigang Gong Committed by Emma Anholt
Browse files

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: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
parent 47e86eea
......@@ -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)
......
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