[gnome-games] quadrapassel: ifdef call to newly deprecated cogl_texture_unref



commit 8b98ab8ec2420a4e493b73ae889331dce38c6003
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Sat Apr 24 17:14:59 2010 +0200

    quadrapassel: ifdef call to newly deprecated cogl_texture_unref

 quadrapassel/blocks-cache.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/quadrapassel/blocks-cache.cpp b/quadrapassel/blocks-cache.cpp
index c619560..81bf13e 100644
--- a/quadrapassel/blocks-cache.cpp
+++ b/quadrapassel/blocks-cache.cpp
@@ -93,7 +93,11 @@ blocks_cache_clear (BlocksCache *cache)
 
     if (handle != COGL_INVALID_HANDLE &&
         !IS_FAILED_HANDLE (handle)) {
+#if CLUTTER_CHECK_VERSION(1, 2, 0)
+      cogl_handle_unref (handle);
+#else
       cogl_texture_unref (handle);
+#endif
     }
 
     priv->colours[i] = COGL_INVALID_HANDLE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]