glamor: Initialize pixmap private's container to correct value.

When calling from ephyr, we forgot to initialize it to the correct
value. Will cause segfault when run Xephyr.

Signed-off-by: Zhigang Gong <zhigang.gong@gmail.com>
This commit is contained in:
Zhigang Gong 2011-06-26 15:49:13 +08:00 committed by Zhigang Gong
parent ca36ada041
commit 489e6c4e6f

View File

@ -197,6 +197,7 @@ glamor_create_screen_pixmap(ScreenPtr screen, int w, int h, int depth,
pixmap_priv->tex = 0;
pixmap_priv->gl_fbo = 1;
pixmap_priv->gl_tex = 1;
pixmap_priv->container = pixmap;
screen->CreatePixmap = glamor_create_pixmap;
return pixmap;