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
This commit is contained in:
Tomeu Vizoso 2010-11-27 16:07:01 +01:00 committed by Emmanuele Bassi
parent 47d63c1c55
commit b63e9ee8f8

View 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)