mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
egl: Allow passing NULL as error
When calling an EGL function is expected to sometimes fail, we might not care about the error. https://bugzilla.gnome.org/show_bug.cgi?id=773629
This commit is contained in:
@ -127,6 +127,9 @@ set_egl_error (GError **error)
|
||||
{
|
||||
const char *error_str;
|
||||
|
||||
if (!error)
|
||||
return;
|
||||
|
||||
error_str = get_egl_error_str ();
|
||||
g_set_error (error, G_IO_ERROR,
|
||||
G_IO_ERROR_FAILED,
|
||||
|
Reference in New Issue
Block a user