From 428f2a3f58a91300835aaa083ac0b291ce394dd0 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 13 Apr 2012 13:45:42 +0800 Subject: [PATCH] glamor_pixmap_ensure_fbo: Should allocate tex if we don't have one. Signed-off-by: Zhigang Gong --- glamor/glamor_fbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index e9612bd7f..e5b98a16c 100644 --- a/glamor/glamor_fbo.c +++ b/glamor/glamor_fbo.c @@ -527,7 +527,7 @@ glamor_pixmap_ensure_fbo(PixmapPtr pixmap, GLenum format, int flag) glamor_pixmap_attach_fbo(pixmap, fbo); } else { /* We do have a fbo, but it may lack of fb or tex. */ - if (pixmap_priv->fbo->tex) + if (!pixmap_priv->fbo->tex) pixmap_priv->fbo->tex = _glamor_create_tex(glamor_priv, pixmap->drawable.width, pixmap->drawable.height, format);