From 8ccbb32f71dc9427e3198b7ff19f2fd950fcfefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Mon, 21 Feb 2022 12:14:28 +0100 Subject: [PATCH] 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: --- src/backends/meta-egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c index 8adc2407e..07e46812d 100644 --- a/src/backends/meta-egl.c +++ b/src/backends/meta-egl.c @@ -349,7 +349,7 @@ meta_egl_choose_all_configs (MetaEgl *egl, return NULL; } - *out_num_configs = num_configs; + *out_num_configs = num_matches; return configs; }