feature: Make sure we have a GL context

Before asking Cogl and ClutterBackend for the list of features we must
have a GL backend ready.
This commit is contained in:
Emmanuele Bassi 2009-12-03 20:48:55 +00:00
parent a8daaa8222
commit 5eb6fb74b6

View File

@ -102,6 +102,9 @@ _clutter_feature_init (void)
context = _clutter_context_get_default ();
/* makes sure we have a GL context; if we have, this is a no-op */
_clutter_backend_create_context (context->backend, NULL);
__features->flags = (_clutter_features_from_cogl (cogl_get_features ())
| _clutter_backend_get_features (context->backend));