renderer/native: Use g_set_error() instead of _cogl_set_error()

It's even a GError, so lets use the proper API.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/622
This commit is contained in:
Jonas Ådahl 2019-06-17 18:18:12 +02:00
parent 6dba56223a
commit 1efb32d300

View File

@ -1249,7 +1249,7 @@ meta_renderer_native_egl_context_created (CoglDisplay *cogl_display,
cogl_display_egl->dummy_surface,
cogl_display_egl->egl_context))
{
_cogl_set_error (error, COGL_WINSYS_ERROR,
g_set_error (error, COGL_WINSYS_ERROR,
COGL_WINSYS_ERROR_CREATE_CONTEXT,
"Failed to make context current");
return FALSE;