mutter/cogl/driver/gl
Neil Roberts 7474d320f6 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.
2010-11-24 18:39:07 +00:00
..
cogl-context-driver-gl.c build: Start moving to a non-recursive layout 2010-09-29 14:40:15 +01:00
cogl-context-driver-gl.h build: Start moving to a non-recursive layout 2010-09-29 14:40:15 +01:00
cogl-feature-functions-gl.h Merge cogl-program-{gl,gles}.c into one cogl-program.c 2010-10-28 19:51:42 +01:00
cogl-gl.c cogl-context: Get rid of the features_cached member 2010-11-24 18:39:07 +00:00
cogl-texture-driver-gl.c cogl: rename CoglMaterial -> CoglPipeline 2010-11-03 18:09:23 +00:00