summaryrefslogtreecommitdiff
path: root/cogl/cogl-context.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2010-11-24 18:37:47 +0000
committerNeil Roberts <neil@linux.intel.com>2010-11-24 18:39:07 +0000
commit7474d320f6e1ea9bcfbaebfc3ba23de767386c20 (patch)
treec13e8f698634cdd3a2b99a7fbb10fe123f478bbf /cogl/cogl-context.h
parentbbf912b61d298ca3b1a3aff399c79c9ad493cb6a (diff)
downloadcogl-7474d320f6e1ea9bcfbaebfc3ba23de767386c20.tar.gz
cogl-context: Get rid of the features_cached member
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.
Diffstat (limited to 'cogl/cogl-context.h')
-rw-r--r--cogl/cogl-context.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h
index b3784d51..0bc0248d 100644
--- a/cogl/cogl-context.h
+++ b/cogl/cogl-context.h
@@ -55,7 +55,6 @@ typedef struct
/* Features cache */
CoglFeatureFlags feature_flags;
CoglFeatureFlagsPrivate feature_flags_private;
- gboolean features_cached;
CoglHandle default_pipeline;
CoglHandle default_layer_0;