diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2018-02-23 22:13:11 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2018-03-05 15:42:26 +0000 |
commit | b4d642be525bdcee4d256d4596eecda4dd1722b0 (patch) | |
tree | 3d7eaf85d0a902ad30bdc328c3761dec5585e562 | |
parent | 0bf0e5780cb6e43a5130fc1c04ba5b024bc12b46 (diff) | |
download | mutter-b4d642be525bdcee4d256d4596eecda4dd1722b0.tar.gz |
egl: Rename EGL simple config chooser
It just picked the first config, so name it accordingly.
https://gitlab.gnome.org/GNOME/mutter/issues/2
-rw-r--r-- | src/backends/meta-egl.c | 10 | ||||
-rw-r--r-- | src/backends/meta-egl.h | 10 | ||||
-rw-r--r-- | src/backends/native/meta-renderer-native.c | 14 |
3 files changed, 17 insertions, 17 deletions
diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c index b4685ba46..d9c7b24d1 100644 --- a/src/backends/meta-egl.c +++ b/src/backends/meta-egl.c @@ -266,11 +266,11 @@ meta_egl_get_proc_address (MetaEgl *egl, } gboolean -meta_egl_choose_config (MetaEgl *egl, - EGLDisplay display, - const EGLint *attrib_list, - EGLConfig *chosen_config, - GError **error) +meta_egl_choose_first_config (MetaEgl *egl, + EGLDisplay display, + const EGLint *attrib_list, + EGLConfig *chosen_config, + GError **error) { EGLint num_configs; EGLConfig *configs; diff --git a/src/backends/meta-egl.h b/src/backends/meta-egl.h index 628e4b473..be4e631d2 100644 --- a/src/backends/meta-egl.h +++ b/src/backends/meta-egl.h @@ -56,11 +56,11 @@ gpointer meta_egl_get_proc_address (MetaEgl *egl, const char *procname, GError **error); -gboolean meta_egl_choose_config (MetaEgl *egl, - EGLDisplay display, - const EGLint *attrib_list, - EGLConfig *chosen_config, - GError **error); +gboolean meta_egl_choose_first_config (MetaEgl *egl, + EGLDisplay display, + const EGLint *attrib_list, + EGLConfig *chosen_config, + GError **error); EGLContext meta_egl_create_context (MetaEgl *egl, EGLDisplay display, diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index 825833975..5c29597cc 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -980,8 +980,8 @@ create_dummy_pbuffer_surface (EGLDisplay egl_display, EGL_NONE }; - if (!meta_egl_choose_config (egl, egl_display, pbuffer_config_attribs, - &pbuffer_config, error)) + if (!meta_egl_choose_first_config (egl, egl_display, pbuffer_config_attribs, + &pbuffer_config, error)) return EGL_NO_SURFACE; return meta_egl_create_pbuffer_surface (egl, egl_display, @@ -2846,11 +2846,11 @@ create_secondary_egl_config (MetaEgl *egl, EGL_NONE }; - return meta_egl_choose_config (egl, - egl_display, - attributes, - egl_config, - error); + return meta_egl_choose_first_config (egl, + egl_display, + attributes, + egl_config, + error); } static EGLContext |