material: route fogging state through CoglMaterial
authorRobert Bragg <robert@linux.intel.com>
Tue, 6 Jul 2010 19:18:26 +0000 (20:18 +0100)
committerRobert Bragg <robert@linux.intel.com>
Wed, 7 Jul 2010 13:12:15 +0000 (14:12 +0100)
commit9b9e764dc1dcc2025e3cabb63ea118fa37ed373d
tree51fe86f6ac4f0111babdbb7d6bf92dc7be82900f
parent279e68d8d9a84356c83e32502c5bc5af5160da08
material: route fogging state through CoglMaterial

Previously cogl_set_fog would cause a flush of the Cogl journal and
would directly bang the GL state machine to setup fogging. As part of
the ongoing effort to track most state in CoglMaterial to support
renderlists this now adds an indirection so that cogl_set_fog now just
updates ctx->legacy_fog_state. The fogging state then gets enabled as a
legacy override similar to how the old depth testing API is handled.
clutter/cogl/cogl/cogl-context.c
clutter/cogl/cogl/cogl-context.h
clutter/cogl/cogl/cogl-material-arbfp.c
clutter/cogl/cogl/cogl-material-fixed.c
clutter/cogl/cogl/cogl-material-private.h
clutter/cogl/cogl/cogl-material.c
clutter/cogl/cogl/cogl.c