Don't bail out from creating the FBO if we don't have it yet.
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Sat, 27 Nov 2010 15:07:01 +0000 (16:07 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 29 Nov 2010 10:54:39 +0000 (10:54 +0000)
This happens when reattaching an effect to another actor.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2453

clutter/clutter-offscreen-effect.c

index f034cfd..ebfc45d 100644 (file)
@@ -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)