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:
Zhigang Gong 2011-09-26 16:01:03 +08:00
parent 937d3bcecf
commit df07020560

View File

@ -718,8 +718,12 @@ ephyrCreateResources (ScreenPtr pScreen)
ephyrShadowUpdate,
ephyrWindowLinear);
else {
if (ephyr_glamor)
if (ephyr_glamor) {
KdScreenPriv(pScreen);
KdScreenInfo *screen = pScreenPriv->screen;
if (!glamor_glyphs_init(pScreen)) return FALSE;
glamor_set_screen_pixmap_texture(pScreen, screen->width, screen->height, 0);
}
return ephyrSetInternalDamage(pScreen);
}
}