[mutter] egl: Fix number of configs returned in meta_egl_choose_all_configs



commit 8ccbb32f71dc9427e3198b7ff19f2fd950fcfefc
Author: Alfonso Sánchez-Beato <alfonso sanchez-beato canonical com>
Date:   Mon Feb 21 12:14:28 2022 +0100

    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>

 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 8adc2407e7..07e46812dd 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;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]