[gnome-games] quadrapassel: ifdef call to newly deprecated cogl_texture_unref
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] quadrapassel: ifdef call to newly deprecated cogl_texture_unref
- Date: Sat, 24 Apr 2010 15:16:23 +0000 (UTC)
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]