[mutter/wip/carlosg/drop-caps: 2/4] core: Set up EGL context creation thread before dropping capabilities
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/drop-caps: 2/4] core: Set up EGL context creation thread before dropping capabilities
- Date: Fri, 8 Nov 2019 15:04:25 +0000 (UTC)
commit c46a5208d89b3910ea8249e5c83e0dc63be16e5e
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Nov 8 14:56:24 2019 +0100
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
src/core/main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index 89d1244e7..c86e7555b 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -595,7 +595,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
#ifdef HAVE_LIBCAPNG
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]