gnome-games r8415 - trunk/libgames-support
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8415 - trunk/libgames-support
- Date: Tue, 6 Jan 2009 18:17:57 +0000 (UTC)
Author: chpe
Date: Tue Jan 6 18:17:57 2009
New Revision: 8415
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8415&view=rev
Log:
Don't crash when loading the card theme has failed and we're getting
NULL pixbufs.
Modified:
trunk/libgames-support/games-card-textures-cache.c
Modified: trunk/libgames-support/games-card-textures-cache.c
==============================================================================
--- trunk/libgames-support/games-card-textures-cache.c (original)
+++ trunk/libgames-support/games-card-textures-cache.c Tue Jan 6 18:17:57 2009
@@ -244,6 +244,9 @@
card_id,
highlighted);
+ if (!pixbuf)
+ return COGL_INVALID_HANDLE;
+
tex = cogl_texture_new_from_data (gdk_pixbuf_get_width (pixbuf),
gdk_pixbuf_get_height (pixbuf),
64, FALSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]