ephyr-glamor: Set texture 0 to screen pixmap.
In Xephyr, screen pixmap is different from other pixmap. It use fbo zero and texture zero. We initialize it during creating screen resources. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
937d3bcecf
commit
df07020560
|
@ -718,8 +718,12 @@ ephyrCreateResources (ScreenPtr pScreen)
|
||||||
ephyrShadowUpdate,
|
ephyrShadowUpdate,
|
||||||
ephyrWindowLinear);
|
ephyrWindowLinear);
|
||||||
else {
|
else {
|
||||||
if (ephyr_glamor)
|
if (ephyr_glamor) {
|
||||||
|
KdScreenPriv(pScreen);
|
||||||
|
KdScreenInfo *screen = pScreenPriv->screen;
|
||||||
if (!glamor_glyphs_init(pScreen)) return FALSE;
|
if (!glamor_glyphs_init(pScreen)) return FALSE;
|
||||||
|
glamor_set_screen_pixmap_texture(pScreen, screen->width, screen->height, 0);
|
||||||
|
}
|
||||||
return ephyrSetInternalDamage(pScreen);
|
return ephyrSetInternalDamage(pScreen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue