egl: Fix number of configs returned in meta_egl_choose_all_configs

Return in meta_egl_choose_all_configs() the actual number of
configurations returned by eglChooseConfig(), which are not
necessarily the same number as those from eglGetConfigs().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2303>
This commit is contained in:
Alfonso Sánchez-Beato 2022-02-21 12:14:28 +01:00 committed by Marge Bot
parent 672696f823
commit 8ccbb32f71

View File

@ -349,7 +349,7 @@ meta_egl_choose_all_configs (MetaEgl *egl,
return NULL; return NULL;
} }
*out_num_configs = num_configs; *out_num_configs = num_matches;
return configs; return configs;
} }