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:
parent
a8daaa8222
commit
5eb6fb74b6
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user