mirror of
https://github.com/brl/mutter.git
synced 2024-12-28 22:02:14 +00:00
7474d320f6
The features_cached member of CoglContext is intended to mark when we've calculated the features so that we know if they are ready in cogl_get_features. However we always intialize the features while creating the context so features_cached will never be FALSE so it's not useful. We also had the odd behaviour that the COGL_DEBUG feature overrides were only applied in the first call to cogl_get_features. However there are other functions that use the feature flags such as cogl_features_available that don't use this function so in some cases the feature flags will be interpreted before the overrides are applied. This patch makes it always initialize the features and apply the overrides immediately while creating the context. This fixes a problem with COGL_DEBUG=disable-arbfp where the first material flushed is done before any call to cogl_get_features so it may still use ARBfp. |
||
---|---|---|
.. | ||
cogl-context-driver-gl.c | ||
cogl-context-driver-gl.h | ||
cogl-feature-functions-gl.h | ||
cogl-gl.c | ||
cogl-texture-driver-gl.c |