From df070205600cd736750d8a43426976a518b1fbae Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Mon, 26 Sep 2011 16:01:03 +0800 Subject: [PATCH] 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 --- hw/kdrive/ephyr/ephyr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c index e2cd7a49d..5e217487f 100644 --- a/hw/kdrive/ephyr/ephyr.c +++ b/hw/kdrive/ephyr/ephyr.c @@ -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); } }