cogl-buffer: Stop warning spam running in sw rendering

/etc/gdm/Xsession[731]: Aviso do gerenciador de janelas: Log level 8:
g_error_free: assertion `error != NULL' failed

https://bugzilla.gnome.org/show_bug.cgi?id=694657

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 83dbf79986981fac9ec0f2575b7c7cb32f629f0f)
This commit is contained in:
Bastien Nocera 2013-02-25 11:26:49 +01:00 committed by Robert Bragg
parent c7e4110731
commit bd1e3e7642

View File

@ -304,7 +304,8 @@ _cogl_buffer_map_range_for_fill_or_fallback (CoglBuffer *buffer,
if (ret) if (ret)
return ret; return ret;
cogl_error_free (ignore_error); if (ignore_error)
cogl_error_free (ignore_error);
/* If the map fails then we'll use a temporary buffer to fill /* If the map fails then we'll use a temporary buffer to fill
the data and then upload it using cogl_buffer_set_data when the data and then upload it using cogl_buffer_set_data when