From ef3ea0f46bf1b688249cd37d54cfa67ec55041b0 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 19 Aug 2011 11:06:56 +0800 Subject: [PATCH] glamor: Don't need to check status when set the target. As we already checked the status when create the fbo. Signed-off-by: Zhigang Gong --- glamor/glamor_pixmap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/glamor/glamor_pixmap.c b/glamor/glamor_pixmap.c index 1e17069f1..15fc01448 100644 --- a/glamor/glamor_pixmap.c +++ b/glamor/glamor_pixmap.c @@ -83,9 +83,7 @@ glamor_validate_pixmap(PixmapPtr pixmap) void glamor_set_destination_pixmap_priv_nc(glamor_pixmap_private *pixmap_priv) { -// glBindFramebuffer(GL_FRAMEBUFFER, pixmap_priv->fb); - - glamor_pixmap_ensure_fb(pixmap_priv->container); + glBindFramebuffer(GL_FRAMEBUFFER, pixmap_priv->fb); #ifndef GLAMOR_GLES2 glMatrixMode(GL_PROJECTION); glLoadIdentity();