egl: Fail first config choosing when no results
If there was no matching config, fail to find the first one. https://gitlab.gnome.org/GNOME/mutter/issues/2
This commit is contained in:
parent
b4d642be52
commit
7a41483ea0
@ -299,6 +299,14 @@ meta_egl_choose_first_config (MetaEgl *egl,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (num_matches == 0)
|
||||||
|
{
|
||||||
|
g_free (configs);
|
||||||
|
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
|
"No matching EGLConfig found");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We don't have any preference specified yet, so lets choose the first one.
|
* We don't have any preference specified yet, so lets choose the first one.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user