cogl: Remove CoglError wrapper

CoglError was added at a certain point to remove the hard dependency on
GLib, but since this can't be avoided inside mutter, let's remove this
whole abstraction.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/631
This commit is contained in:
Niels De Graef
2019-06-18 08:02:10 +02:00
committed by Niels De Graef
parent 57dfe4696d
commit 70bacb9402
105 changed files with 648 additions and 1071 deletions

View File

@ -123,7 +123,7 @@ load_from_current_xcursor_image (MetaCursorSpriteXcursor *sprite_xcursor)
ClutterBackend *clutter_backend;
CoglContext *cogl_context;
CoglTexture2D *texture;
CoglError *error = NULL;
GError *error = NULL;
g_assert (!meta_cursor_sprite_get_cogl_texture (sprite));
@ -149,7 +149,7 @@ load_from_current_xcursor_image (MetaCursorSpriteXcursor *sprite_xcursor)
if (!texture)
{
g_warning ("Failed to allocate cursor texture: %s\n", error->message);
cogl_error_free (error);
g_error_free (error);
}
meta_cursor_sprite_set_texture (sprite,