From b63e9ee8f8717dbf73e15df1e9a9d115dcb45504 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 27 Nov 2010 16:07:01 +0100 Subject: [PATCH] Don't bail out from creating the FBO if we don't have it yet. This happens when reattaching an effect to another actor. http://bugzilla.clutter-project.org/show_bug.cgi?id=2453 --- clutter/clutter-offscreen-effect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-offscreen-effect.c b/clutter/clutter-offscreen-effect.c index f034cfd..ebfc45d 100644 --- a/clutter/clutter-offscreen-effect.c +++ b/clutter/clutter-offscreen-effect.c @@ -149,7 +149,8 @@ update_fbo (ClutterEffect *effect, int fbo_width, int fbo_height) } if (priv->target_width == fbo_width && - priv->target_height == fbo_height) + priv->target_height == fbo_height && + priv->offscreen != COGL_INVALID_HANDLE) return TRUE; if (priv->target == COGL_INVALID_HANDLE) -- 2.7.4