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,6 +304,7 @@ _cogl_buffer_map_range_for_fill_or_fallback (CoglBuffer *buffer,
if (ret)
return ret;
if (ignore_error)
cogl_error_free (ignore_error);
/* If the map fails then we'll use a temporary buffer to fill