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 <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
47e86eea56
commit
2d0ea392ec
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user