Compilation fixes for suncc
https://bugzilla.gnome.org/show_bug.cgi?id=654718 Reviewed-by: Neil Roberts <neil@linux.intel.com> Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
6f79eb8a5a
commit
2fc069888f
@ -432,7 +432,10 @@ _cogl_bitmap_unmap (CoglBitmap *bitmap)
|
||||
{
|
||||
/* Divert to another bitmap if this data is shared */
|
||||
if (bitmap->shared_bmp)
|
||||
return _cogl_bitmap_unmap (bitmap->shared_bmp);
|
||||
{
|
||||
_cogl_bitmap_unmap (bitmap->shared_bmp);
|
||||
return;
|
||||
}
|
||||
|
||||
g_assert (bitmap->mapped);
|
||||
bitmap->mapped = FALSE;
|
||||
@ -484,7 +487,10 @@ _cogl_bitmap_unbind (CoglBitmap *bitmap)
|
||||
{
|
||||
/* Divert to another bitmap if this data is shared */
|
||||
if (bitmap->shared_bmp)
|
||||
return _cogl_bitmap_unbind (bitmap->shared_bmp);
|
||||
{
|
||||
_cogl_bitmap_unbind (bitmap->shared_bmp);
|
||||
return;
|
||||
}
|
||||
|
||||
g_assert (bitmap->bound);
|
||||
bitmap->bound = FALSE;
|
||||
|
@ -94,7 +94,7 @@ extern GHashTable *_cogl_debug_instances;
|
||||
|
||||
#else
|
||||
#define COGL_NOTE(type,...) G_STMT_START { \
|
||||
if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_##type)) { \
|
||||
if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_##type))) { \
|
||||
char *_fmt = g_strdup_printf (__VA_ARGS__); \
|
||||
_cogl_profile_trace_message ("[" #type "] " G_STRLOC " & %s", _fmt);\
|
||||
g_free (_fmt); \
|
||||
|
Loading…
Reference in New Issue
Block a user