summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2019-11-08 14:56:24 +0100
committerCarlos Garnacho <carlosg@gnome.org>2019-11-13 15:12:12 +0100
commitd8c4d78f4a8a7e282969ea6a043cbcacf6e85d2b (patch)
treed8d5225b578123e426effe7bceaf62739b12968c
parentb7a662bfddd10d33f40c99364353bc31bed289bc (diff)
downloadmutter-d8c4d78f4a8a7e282969ea6a043cbcacf6e85d2b.tar.gz
core: Set up EGL context creation thread before dropping capabilities
We do intend this thread to preserve the necessary capabilities to create high priority EGL contexts. Set this thread up before we drop these. https://gitlab.gnome.org/GNOME/mutter/merge_requests/923
-rw-r--r--src/core/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 82694d5d8..5ecea0f1f 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -591,7 +591,10 @@ meta_init (void)
#ifdef HAVE_NATIVE_BACKEND
if (backend_gtype == META_TYPE_BACKEND_NATIVE)
- meta_set_scheduler ();
+ {
+ meta_set_scheduler ();
+ cogl_egl_init_thread ();
+ }
#endif
g_unix_signal_add (SIGTERM, on_sigterm, NULL);