texture: Don't compare fbo_source with COGL_INVALID_HANDLE
authorDamien Lespiau <damien.lespiau@gmail.com>
Sun, 1 Nov 2009 14:36:05 +0000 (14:36 +0000)
committerDamien Lespiau <damien.lespiau@gmail.com>
Mon, 2 Nov 2009 14:40:43 +0000 (14:40 +0000)
fbo_source is a ClutterActor, it should be compared to NULL instead of
COGL_INVALID_HANDLE.

clutter/clutter-texture.c

index 363c991..4d29962 100644 (file)
@@ -251,7 +251,7 @@ clutter_texture_unrealize (ClutterActor *actor)
 
   CLUTTER_MARK();
 
-  if (priv->fbo_source != COGL_INVALID_HANDLE)
+  if (priv->fbo_source != NULL)
     {
       /* Free up our fbo handle and texture resources, realize will recreate */
       cogl_handle_unref (priv->fbo_handle);