mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
context: Enable new feature testing on COGL_ENABLE_EXPERIMENTAL_API
The 2.0 API for querying features (cogl_has_feature etc) does not conflict with the old 1.0 API (cogl_features_available) so we might as well enable it when the experimental API is requested without requesting the 2.0-only API. Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
6f59993e1b
commit
de5d55ae93
@ -158,7 +158,7 @@ cogl_is_context (void *object);
|
||||
|
||||
#endif /* COGL_ENABLE_EXPERIMENTAL_2_0_API */
|
||||
|
||||
/* XXX: not guarded by the EXPERIMENTAL_2_0_API defines to avoid
|
||||
/* XXX: not guarded by the EXPERIMENTAL_API defines to avoid
|
||||
* upsetting glib-mkenums, but this can still be considered implicitly
|
||||
* experimental since it's only useable with experimental API... */
|
||||
/**
|
||||
@ -236,7 +236,7 @@ typedef enum _CoglFeatureID
|
||||
} CoglFeatureID;
|
||||
|
||||
|
||||
#ifdef COGL_ENABLE_EXPERIMENTAL_2_0_API
|
||||
#ifdef COGL_ENABLE_EXPERIMENTAL_API
|
||||
|
||||
/**
|
||||
* cogl_has_feature:
|
||||
@ -309,7 +309,7 @@ cogl_foreach_feature (CoglContext *context,
|
||||
CoglFeatureCallback callback,
|
||||
void *user_data);
|
||||
|
||||
#endif /* COGL_ENABLE_EXPERIMENTAL_2_0_API */
|
||||
#endif /* COGL_ENABLE_EXPERIMENTAL_API */
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user