From 0599d12ec94344174c947310bddb5658f1b9db58 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sun, 1 Nov 2009 14:36:05 +0000 Subject: [PATCH] texture: Don't compare fbo_source with COGL_INVALID_HANDLE fbo_source is a ClutterActor, it should be compared to NULL instead of COGL_INVALID_HANDLE. --- clutter/clutter-texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c index 363c99179..4d2996208 100644 --- a/clutter/clutter-texture.c +++ b/clutter/clutter-texture.c @@ -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);