compositor: Initiate cogl context field on creation

There will only ever be one context; just get it from clutter instead
of waiting for we interact with a framebuffer.

https://bugzilla.gnome.org/show_bug.cgi?id=768976
This commit is contained in:
Jonas Ådahl
2016-07-06 17:05:56 +08:00
parent 767e12125b
commit a465e4c5b8
3 changed files with 7 additions and 3 deletions

View File

@ -671,7 +671,7 @@ static GSourceFuncs event_funcs = {
event_dispatch
};
static ClutterBackend *
ClutterBackend *
meta_backend_get_clutter_backend (MetaBackend *backend)
{
MetaBackendPrivate *priv = meta_backend_get_instance_private (backend);