mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +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:
parent
934184e236
commit
18b9cf8a85
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user